PluginProbe
Qi Blocks / trunk
Qi Blocks vtrunk
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 trunk, at inc/blocks/include.php

21 lines 668 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 . '/helper.php';
8 require_once QI_BLOCKS_BLOCKS_PATH . '/class-qi-blocks-blocks-list.php';
9 require_once QI_BLOCKS_BLOCKS_PATH . '/class-qi-blocks-blocks.php';
10
11 foreach ( glob( QI_BLOCKS_BLOCKS_PATH . '/*/*-block.php' ) as $block ) {
12 require_once $block;
13 }
14
15 foreach ( glob( QI_BLOCKS_BLOCKS_PATH . '/*/helper.php' ) as $block_helper ) {
16 require_once $block_helper;
17 }
18
19 // Hook to include additional element after blocks inclusion.
20 do_action( 'qi_blocks_action_after_include_blocks' );
21