-
Notifications
You must be signed in to change notification settings - Fork 55
/
create-block-theme.php
46 lines (39 loc) · 1.08 KB
/
create-block-theme.php
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
<?php
/**
* @wordpress-plugin
* Plugin Name: Create Block Theme
* Plugin URI: https://wordpress.org/plugins/create-block-theme
* Description: Generates a block theme
* Version: 2.6.0
* Author: WordPress.org
* Author URI: https://wordpress.org/
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: create-block-theme
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Include file with download_url() if function doesn't exist.
if ( ! function_exists( 'download_url' ) ) {
require_once ABSPATH . 'wp-admin/includes/file.php';
}
/**
* The core plugin class.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-create-block-theme.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 0.0.2
*/
function cbt_run_create_block_theme() {
$plugin = new CBT_Plugin();
$plugin->run();
}
cbt_run_create_block_theme();