-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathplugin.php
More file actions
77 lines (66 loc) · 1.85 KB
/
Copy pathplugin.php
File metadata and controls
77 lines (66 loc) · 1.85 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* Plugin Name: WordPress Steem
* Plugin URI: https://github.com/recrypto/wp-steem
* Description: Publish your WordPress posts on Steem blockchain.
* Version: 1.0.5
* Author: ReCrypto
* Author URI: https://steemit.com/@recrypto
* Requires at least: 4.1
* Tested up to: 4.8.2
*
* Text Domain: wp-steem
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
define('WP_STEEM_VERSION', '1.0.5');
define('WP_STEEM_DIR_PATH', trailingslashit(plugin_dir_path(__FILE__)));
define('WP_STEEM_DIR_URL', trailingslashit(plugin_dir_url(__FILE__)));
register_activation_hook(__FILE__, 'wp_steem_activate');
register_deactivation_hook(__FILE__, 'wp_steem_deactivate');
/**
* Plugin activation
*
* @since 1.0.0
*/
function wp_steem_activate() {
do_action('wp_steem_activated');
}
/**
* Plugin deactivation
*
* @since 1.0.0
*/
function wp_steem_deactivate() {
do_action('wp_steem_deactivated');
}
/**
* Plugin init
*
* @since 1.0.0
*/
function wp_steem_init() {
/**
* Fires before including the files
*
* @since 1.0.0
*/
do_action('wp_steem_pre_init');
require_once(WP_STEEM_DIR_PATH . 'vendor/autoload.php');
require_once(WP_STEEM_DIR_PATH . 'app/class-wp-steem-helper.php');
require_once(WP_STEEM_DIR_PATH . 'app/class-wp-steem.php');
require_once(WP_STEEM_DIR_PATH . 'app/class-wp-steem-post.php');
require_once(WP_STEEM_DIR_PATH . 'app/class-wp-steem-post-sync.php');
require_once(WP_STEEM_DIR_PATH . 'app/wp-steem-functions.php');
if (is_admin()) {
require_once(WP_STEEM_DIR_PATH . 'app/admin/wp-steem-post-meta-handler.php');
require_once(WP_STEEM_DIR_PATH . 'app/admin/wp-steem-settings-handler.php');
}
/**
* Fires after including the files
*
* @since 1.0.0
*/
do_action('wp_steem_init');
}
add_action('plugins_loaded', 'wp_steem_init');