| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 31 | public function removeHook(string $hook, string $fn, string $className, int $priority = 10): bool |
||
| 32 | { |
||
| 33 | $callback = $this->findCallback($hook, $fn, $className, $priority); |
||
| 34 | if (!empty($callback['function'])) { |
||
| 35 | remove_filter($hook, $callback['function'], $priority); |
||
| 36 | return true; |
||
| 37 | } |
||
| 38 | return false; |
||
| 39 | } |
||
| 41 |