PluginProbe
RichText Extension / 3.1.0
RichText Extension v3.1.0
3.1.0 trunk 1.1.2 1.1.3 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.6.0 2.6.1 2.7.0 2.8.0 2.9.0 3.0.0 3.0.1
richtext-extension / richtext-extension.php

richtext-extension.php in RichText Extension 3.1.0, at richtext-extension.php

38 lines 965 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: RichText Extension
4 * Description: Adds useful decoration features to the Gutenberg RichText editor toolbar.
5 * Requires at least: 7.0
6 * Requires PHP: 8.0
7 * Version: 3.1.0
8 * Author: Aki Hamano
9 * Author URI: https://github.com/t-hamano
10 * License: GPL2 or later
11 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
12 * Text Domain: richtext-extension
13 * @package richtext-extension
14 * @author Aki Hamano
15 * @license GPL-2.0+
16 */
17
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 $rtex_data = get_file_data(
23 __FILE__,
24 array(
25 'Version' => 'Version',
26 )
27 );
28
29 define( 'RTEX_VERSION', $rtex_data['Version'] );
30 define( 'RTEX_NAMESPACE', 'richtext-extension' );
31 define( 'RTEX_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
32 define( 'RTEX_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
33 define( 'RTEX_BASENAME', plugin_basename( __FILE__ ) );
34
35 require_once RTEX_PATH . '/inc/class-main.php';
36
37 new richtext_extension\Main();
38