/ wordpress / restai / restai.php
restai.php
 1  <?php
 2  /**
 3   * Plugin Name:       RESTai
 4   * Plugin URI:        https://restai.cloud/wordpress
 5   * Description:       RESTai - AI superpowers for WordPress — generate content, SEO meta, images, translations, AI search, embedded chat and more, powered by your own RESTai instance.
 6   * Version:           0.1.0
 7   * Requires at least: 6.0
 8   * Requires PHP:      7.4
 9   * Author:            Pedro Dias
10   * Author URI:        https://restai.cloud
11   * License:           GPL-2.0-or-later
12   * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
13   * Text Domain:       restai
14   * Domain Path:       /languages
15   *
16   * @package RESTai
17   */
18  
19  if ( ! defined( 'ABSPATH' ) ) {
20  	exit;
21  }
22  
23  define( 'RESTAI_VERSION', '0.1.0' );
24  define( 'RESTAI_PLUGIN_FILE', __FILE__ );
25  define( 'RESTAI_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26  define( 'RESTAI_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
27  define( 'RESTAI_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
28  
29  require_once RESTAI_PLUGIN_DIR . 'includes/class-restai.php';
30  
31  register_activation_hook( __FILE__, array( 'RESTai\\Plugin', 'activate' ) );
32  register_deactivation_hook( __FILE__, array( 'RESTai\\Plugin', 'deactivate' ) );
33  
34  add_action( 'plugins_loaded', array( 'RESTai\\Plugin', 'instance' ) );