-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom-html-block-extension.php
39 lines (34 loc) · 1.04 KB
/
custom-html-block-extension.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
<?php
/**
* Plugin Name: Custom HTML Block Extension
* Description: Extend Custom HTML block to evolve into the advanced code editor.
* Requires at least: 6.5
* Requires PHP: 7.4
* Version: 3.7.0
* Author: Aki Hamano
* Author URI: https://github.com/t-hamano
* License: GPL2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: custom-html-block-extension
* @package Custom_Html_Block_Extension
* @author Aki Hamano
* @license GPL-2.0+
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
$chbe_data = get_file_data(
__FILE__,
array(
'Version' => 'Version',
'TextDomain' => 'Text Domain',
)
);
define( 'CHBE_VERSION', $chbe_data['Version'] );
define( 'CHBE_NAMESPACE', $chbe_data['TextDomain'] );
define( 'CHBE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'CHBE_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'CHBE_BASENAME', plugin_basename( __FILE__ ) );
require_once __DIR__ . '/classes/class-init.php';
new Custom_Html_Block_Extension\Init();