-
Notifications
You must be signed in to change notification settings - Fork 7
/
convert-classic-editor-to-gb-blocks.php
37 lines (31 loc) · 1.19 KB
/
convert-classic-editor-to-gb-blocks.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
<?php
/**
*
* @link https://www.thedotstore.com/
* @since 1.0.0
* @package Convert Classic Editor to Gutenberg Blocks
*
* @wordpress-plugin
* Plugin Name: Convert Classic Editor to Gutenberg Blocks
* Plugin URI: https://www.thedotstore.com/
* Description: This plugin will useful for convert existing classic editor post to Gutenberg blocks post.
* Version: 1.0.0
* Author: Thedotstore
* Author URI: https://www.thedotstore.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: convert-classic-editor-to-gutenberg-blocks
*/
/**
* Exit if accessed directly
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
register_activation_hook( __FILE__, array( 'CCETGB_Admin_Settings', 'ccetgb_plugin_activation' ) );
require_once( plugin_dir_path( __FILE__ ) . 'class.convert-classic-to-gb-blocks-admin.php' );
add_action( 'init', array( 'CCETGB_Admin_Settings', 'ccetgb_init' ) );
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'class.convert-classic-to-gb-blocks.php' );
$convert_to_block = new CCETGB_Convert_Classic_to_GB_Blocks();
}