-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsteem-for-wordpress.php
62 lines (52 loc) · 1.51 KB
/
steem-for-wordpress.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Plugin Name: Steem for Wordpress
* Version: 1.0.0
* Plugin URI: http://github.com/steem-aksai/steem4wp
* Description: Wordpress plugin for communicating with Steem.
* Author: Steem Aksai
* Author URI:
* Requires at least: 4.0
* Tested up to: 4.0
*
* Text Domain: steem-for-wordpress
* Domain Path: /lang/
*
* @package WordPress
* @author Steem Aksai
* @since 1.0.0
*/
if (!defined('ABSPATH')) {
exit;
}
// Load plugin class files.
require_once 'includes/class-steem-for-wordpress.php';
require_once 'includes/class-steem-for-wordpress-settings.php';
// Load plugin libraries.
require_once 'includes/lib/class-steem-for-wordpress-admin-api.php';
require_once 'includes/lib/class-steem-for-wordpress-post-type.php';
require_once 'includes/lib/class-steem-for-wordpress-taxonomy.php';
require_once 'includes/steem.php';
require_once 'includes/steem4wp.php';
/**
* Returns the main instance of Steem_for_Wordpress to prevent the need to use globals.
*
* @since 1.0.0
* @return object Steem_for_Wordpress
*/
function steem_for_wordpress()
{
$instance = Steem_for_Wordpress::instance(__FILE__, '1.0.0');
if (is_null($instance->settings)) {
$instance->settings = Steem_for_Wordpress_Settings::instance($instance);
}
return $instance;
}
steem_for_wordpress();
define('STEEM_REST_API_DIR', plugin_dir_path(__FILE__));
// after all plugins are loaded
add_action('plugins_loaded', 'steem4wp_plugins_loaded');
function steem4wp_plugins_loaded()
{
include(STEEM_REST_API_DIR . 'includes/router.php');
}