| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @wordpress-plugin |
| 5 |
* Plugin Name: Create Block Theme |
| 6 |
* Plugin URI: https://wordpress.org/plugins/create-block-theme |
| 7 |
* Description: Generates a block theme |
| 8 |
* Version: 2.8.0 |
| 9 |
* Author: WordPress.org |
| 10 |
* Author URI: https://wordpress.org/ |
| 11 |
* License: GNU General Public License v2 or later |
| 12 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
* Text Domain: create-block-theme |
| 14 |
*/ |
| 15 |
|
| 16 |
// If this file is called directly, abort. |
| 17 |
if ( ! defined( 'WPINC' ) ) { |
| 18 |
die; |
| 19 |
} |
| 20 |
|
| 21 |
// Include file with download_url() if function doesn't exist. |
| 22 |
if ( ! function_exists( 'download_url' ) ) { |
| 23 |
require_once ABSPATH . 'wp-admin/includes/file.php'; |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
* The core plugin class. |
| 28 |
*/ |
| 29 |
require plugin_dir_path( __FILE__ ) . 'includes/class-create-block-theme.php'; |
| 30 |
|
| 31 |
/** |
| 32 |
* Begins execution of the plugin. |
| 33 |
* |
| 34 |
* Since everything within the plugin is registered via hooks, |
| 35 |
* then kicking off the plugin from this point in the file does |
| 36 |
* not affect the page life cycle. |
| 37 |
* |
| 38 |
* @since 0.0.2 |
| 39 |
*/ |
| 40 |
function cbt_run_create_block_theme() { |
| 41 |
|
| 42 |
$plugin = new CBT_Plugin(); |
| 43 |
$plugin->run(); |
| 44 |
|
| 45 |
} |
| 46 |
cbt_run_create_block_theme(); |
| 47 |
|