| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public static function registerHooks() |
||
| 41 | { |
||
| 42 | add_filter('Flynt/renderComponent', function ($output, $componentName, $data) { |
||
| 43 | return apply_filters( |
||
| 44 | "Flynt/renderComponent?name={$componentName}", |
||
| 45 | $output, |
||
| 46 | $componentName, |
||
| 47 | $data |
||
| 48 | ); |
||
| 49 | }, 10, 3); |
||
| 50 | |||
| 51 | add_filter('Flynt/addComponentData', function ($data, $componentName) { |
||
| 52 | return apply_filters( |
||
| 53 | "Flynt/addComponentData?name={$componentName}", |
||
| 54 | $data, |
||
| 55 | $componentName |
||
| 56 | ); |
||
| 57 | }, 10, 2); |
||
| 58 | } |
||
| 60 |