-
Notifications
You must be signed in to change notification settings - Fork 0
/
ai-smart-suggestions.php
42 lines (34 loc) · 1.09 KB
/
ai-smart-suggestions.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
<?php
/**
* Plugin Name: AI Smart Suggestions
* Plugin URI: https://github.com/hasukmistry/ai-smart-suggestions
* Description: A plugin to add AI suggestions to your WordPress site content.
* Version: 1.0
* Requires at least: 6.2
* Requires PHP: 8.0
* Author: Hasmukh K Mistry
* Author URI: https://hasmukhmistry137.medium.com/
* License: GPL-2.0+
* License URI:
* Update URI:
* Text Domain: ai-smart-suggestions
* Domain Path:
*/
declare(strict_types=1);
use AISmartSuggestions\Plugin;
use AISmartSuggestions\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Define the plugin path
define( 'AI_SS_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
// Define the plugin url
define( 'AI_SS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
if ( ! class_exists( Plugin::class ) && is_readable( __DIR__ . '/vendor/autoload.php' ) ) {
/** @noinspection PhpIncludeInspection */
require_once __DIR__ . '/vendor/autoload.php';
}
if ( class_exists( Core\Secret::class ) ) {
register_activation_hook( __FILE__, array( Core\Secret::class, 'activate' ) );
}
class_exists( Plugin::class ) && Plugin::instance()->init();