-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheadlineengine.php
41 lines (37 loc) · 1.33 KB
/
headlineengine.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
<?php
/**
* Plugin Name: HeadlineEngine Dev
* Plugin URI: https://github.com/MaverickEngine/headline-engine
* Description: What makes a good headline? Get instant headline analysis based on readability, length, and powerwords. Brought to you by MavEngine, <em>Powering Media.
* Author: MavEngine
* Author URI: https://mavengine.com
* Version: 0.5.1-dev
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* WC requires at least: 5.8.0
* Tested up to: 6.0
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
const HEADLINEENGINE_SCRIPT_VERSION = "0.5.1-dev";
function headlineengine_admin_init() {
if (!is_admin()) {
return;
}
// require_once(plugin_dir_path( __FILE__ ) . 'includes/admin/taxonomyengine-scripts.php' );
require_once(plugin_basename('includes/admin/headlineengine-admin.php' ) );
new HeadlineEngineAdmin([]);
}
add_action( 'init', 'headlineengine_admin_init' );
function headlineengine_api_init() {
require_once(plugin_dir_path( __FILE__ ) . 'includes/api/headlineengine-api.php' );
new HeadlineEngineAPI();
}
add_action( 'init', 'headlineengine_api_init' );
function headlineengine_post_init() {
require_once( plugin_dir_path( __FILE__ ) . 'includes/post/headlineengine-post.php' );
new HeadlineEnginePost();
}
add_action( 'admin_init', 'headlineengine_post_init', 3 );