Total Complexity | 8 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Filter { |
||
9 | |||
10 | /** |
||
11 | * Remove active filter from $wp_filter |
||
12 | * @param string $hook Hook on which the original filter was applied. |
||
13 | * @param string $class Classname. |
||
14 | * @param string $method Method. |
||
15 | * |
||
16 | * @todo Create tests. |
||
17 | * |
||
18 | * @SuppressWarnings(PHPMD.Superglobals) Don't worry, I know what I'm doing. |
||
19 | * @return void |
||
20 | */ |
||
21 | public static function remove(string $hook, string $class, string $method) { |
||
49 |