PluginProbe
Qi Blocks / 1.0
Qi Blocks v1.0
1.5.3 1.5.2 1.5.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 All 45 releases
qi-blocks / inc / blocks / include.php

include.php in Qi Blocks 1.0, at inc/blocks/include.php

20 lines 613 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Hook to include additional element before blocks inclusion
4 do_action( 'qi_blocks_action_before_include_blocks' );
5
6 // Include main block
7 require_once QI_BLOCKS_BLOCKS_PATH . '/class-qi-blocks-blocks-list.php';
8 require_once QI_BLOCKS_BLOCKS_PATH . '/class-qi-blocks-blocks.php';
9
10 foreach ( glob( QI_BLOCKS_BLOCKS_PATH . '/*/*-block.php' ) as $block ) {
11 require_once $block;
12 }
13
14 foreach ( glob( QI_BLOCKS_BLOCKS_PATH . '/*/helper.php' ) as $block_helper ) {
15 require_once $block_helper;
16 }
17
18 // Hook to include additional element after blocks inclusion
19 do_action( 'qi_blocks_action_after_include_blocks' );
20