| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function run() |
||
| 13 | { |
||
| 14 | $this->hook(BlocksController::class, [ |
||
| 15 | ['filterAllowedBlockTypes', 'allowed_block_types_all', 10, 2], |
||
| 16 | ['filterBlockCategories', 'block_categories_all'], |
||
| 17 | ['filterUseBlockEditor', 'use_block_editor_for_post_type', 10, 2], |
||
| 18 | ['registerAssets', 'init', 9], // This must be done before the blocks are registered |
||
| 19 | ['registerBlocks', 'init'], |
||
| 20 | ['replaceLegacyWidgets', 'widget_types_to_hide_from_legacy_widget_block'], |
||
| 21 | ]); |
||
| 24 |