This repository was archived by the owner on Dec 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
49 lines (40 loc) · 2.3 KB
/
plugin.php
File metadata and controls
49 lines (40 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Creode Blocks MU plugin.
*
* @package Creode Blocks
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
define( 'CREODE_BLOCKS_PLUGIN_FOLDER', plugin_dir_path( __FILE__ ) );
require_once plugin_dir_path( __FILE__ ) . 'includes/helpers/all.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-helpers.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/traits/all.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-script.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/scripts/admin/register-admin-scripts.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/styles/admin/enqueue-admin-styles.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-child-block.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-block.php';
require_once plugin_dir_path( __FILE__ ) . 'blocks/all.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-block-cache.php';
if ( defined( 'WP_CLI' ) && WP_CLI ) {
// Actions.
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/actions/class-create-new-block-files.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/actions/class-rename-files.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/actions/class-replace-file-contents.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/actions/class-setup-block-include.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/actions/class-add-scss-to-all-file.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/actions/class-recompile-assets.php';
// Services.
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/services/class-block-details.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/services/class-block-replacements.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/services/class-block-options.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/make-block/services/class-file.php';
require_once plugin_dir_path( __FILE__ ) . 'includes/class-make-block.php';
// Commands.
require_once plugin_dir_path( __FILE__ ) . 'commands/class-make-block-command.php';
WP_CLI::add_command( 'make-block', 'Make_Block_Command' );
}
new Creode_Blocks\Block_Cache();