| 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 |
|