-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathai-plus-block-editor.php
43 lines (37 loc) · 981 Bytes
/
ai-plus-block-editor.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
40
41
42
43
<?php
/**
* Plugin Name: AI + Block Editor
* Plugin URI: https://github.com/badasswp/ai-plus-block-editor
* Description: Add AI Capabilities to the WP Block Editor.
* Version: 1.1.2
* Author: badasswp
* Author URI: https://github.com/badasswp
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: ai-plus-block-editor
* Domain Path: /languages
*
* @package AiPlusBlockEditor
*/
namespace badasswp\AiPlusBlockEditor;
if ( ! defined( 'WPINC' ) ) {
exit;
}
define( 'APBE_AUTOLOAD', __DIR__ . '/vendor/autoload.php' );
// Composer Check.
if ( ! file_exists( APBE_AUTOLOAD ) ) {
add_action(
'admin_notices',
function () {
vprintf(
/* translators: Plugin directory path. */
esc_html__( 'Fatal Error: Composer not setup in %s', 'ai-plus-block-editor' ),
[ __DIR__ ]
);
}
);
return;
}
// Run Plugin.
require_once APBE_AUTOLOAD;
( \AiPlusBlockEditor\Plugin::get_instance() )->run();