-
Notifications
You must be signed in to change notification settings - Fork 0
/
richtext-extension.php
37 lines (32 loc) · 965 Bytes
/
richtext-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
<?php
/**
* Plugin Name: RichText Extension
* Description: Adds useful decoration features to the Gutenberg RichText editor toolbar.
* Requires at least: 6.5
* Requires PHP: 7.4
* Version: 2.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: richtext-extension
* @package richtext-extension
* @author Aki Hamano
* @license GPL-2.0+
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$rtex_data = get_file_data(
__FILE__,
array(
'Version' => 'Version',
)
);
define( 'RTEX_VERSION', $rtex_data['Version'] );
define( 'RTEX_NAMESPACE', 'richtext-extension' );
define( 'RTEX_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'RTEX_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'RTEX_BASENAME', plugin_basename( __FILE__ ) );
require_once RTEX_PATH . '/inc/class-main.php';
new richtext_extension\Main();