Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | protected function doInitAction(): void |
||
18 | { |
||
19 | $enabled = $this->enabledTags(); |
||
20 | |||
21 | foreach ($this->links() as $tag => $args) { |
||
22 | if (!in_array($tag, $enabled)) { |
||
23 | $callback = $args[0]; |
||
24 | $priority = $args[1] ?? HOOK_DEFAULT_PRIORITY; |
||
25 | |||
26 | remove_action('wp_head', $callback, $priority); |
||
27 | } |
||
48 |