-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquerygenius.php
44 lines (39 loc) · 1.38 KB
/
querygenius.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
44
<?php
/*
* Plugin Name: querygenius
* Plugin URI: https://querygenius.ai
* Description: A WordPress plugin that helps answer questions about your site using AI.
* Version: 1.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Keanan Koppenhaver
* Author URI: https://keanankoppenhaver.com/
* License: GPL v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: querygenius
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'QUERYGENIUS_VERSION', '1.0.0' );
define( 'QUERYGENIUS_URL', plugin_dir_url( __FILE__ ) );
define( 'QUERYGENIUS_PATH', plugin_dir_path( __FILE__ ) );
define( 'QUERYGENIUS_API_BASE', 'https://querygenius.ai/wp-json/querygenius/v1');
/**
* Require the classes necessary for the plugin to work.
*/
require plugin_dir_path( __FILE__ ) . 'classes/class-admin.php';
require plugin_dir_path( __FILE__ ) . 'classes/class-rest-api.php';
require plugin_dir_path( __FILE__ ) . 'classes/class-utilities.php';
require plugin_dir_path( __FILE__ ) . 'classes/class-cli.php';
new Admin();
new Rest_Api();
new Utilities();
new CLI();