-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathayudante-ai.php
executable file
·39 lines (34 loc) · 1.22 KB
/
ayudante-ai.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: Ayudante AI
* Plugin URI: https://github.com/oscarssanchez/ayudante-b
* Description: Enhance your WordPress site with artificial intelligence.
* Author: Oscar Sanchez
* Author URI: http://oscarssanchez.com/
* Version: 1.0.0
* Stable tag: 1.0.0
* Requires at least: 6.1
* Tested up to: 6.1
* License: GPL v3 or later - http://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: ayudanteai-plugin
* Domain Path: /lang
*
* @package AyudanteAI
*/
// Useful global constants.
define( 'AYUDANTEAI_PLUGIN_VERSION', '1,0.0' );
define( 'AYUDANTEAI_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'AYUDANTEAI_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'AYUDANTEAI_PLUGIN_INC', AYUDANTEAI_PLUGIN_PATH . 'includes/' );
define( 'AYUDANTEAI_REST_NAMESPACE', 'ayudanteai/v1' );
// Require Composer autoloader if it exists.
if ( file_exists( AYUDANTEAI_PLUGIN_PATH . 'vendor/autoload.php' ) ) {
require_once AYUDANTEAI_PLUGIN_PATH . 'vendor/autoload.php';
}
// Include files.
require_once AYUDANTEAI_PLUGIN_INC . '/utility.php';
require_once AYUDANTEAI_PLUGIN_INC . '/core.php';
// Activation/Deactivation.
register_activation_hook( __FILE__, '\AyudanteAI\Core\activate' );
// Bootstrap.
AyudanteAI\Core\setup();