-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
social-planner.php
80 lines (67 loc) · 1.56 KB
/
social-planner.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Plugin Name: Social Planner
* Plugin URI: https://github.com/antonlukin/social-planner
* Description: This plugin automatically publishes posts from your blog to your social media accounts on Facebook, Twitter, VK.com, Telegram.
* Author: Anton Lukin
* Author URI: https://wpset.org
* Requires at least: 5.3
* Tested up to: 6.5.5
* Version: 1.4.0
*
* Text Domain: social-planner
*
* @package social-planner
* @author Anton Lukin
*/
namespace Social_Planner;
/**
* If this file is called directly, abort.
*/
if ( ! defined( 'ABSPATH' ) ) {
die;
}
/**
* Plugin version.
*/
define( 'SOCIAL_PLANNER_VERSION', '1.4.0' );
/**
* Plugin admin menu slug.
*/
define( 'SOCIAL_PLANNER_SLUG', 'social-planner' );
/**
* Main plugin file.
*/
define( 'SOCIAL_PLANNER_FILE', __FILE__ );
/**
* Shortcut constant to the path of this file.
*/
define( 'SOCIAL_PLANNER_DIR', __DIR__ );
/**
* Plugin dir url.
*/
define( 'SOCIAL_PLANNER_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
/**
* Include the core plugin class.
*/
require_once SOCIAL_PLANNER_DIR . '/classes/class-core.php';
/**
* Include settings handler.
*/
require_once SOCIAL_PLANNER_DIR . '/classes/class-settings.php';
/**
* Include scheduler class.
*/
require_once SOCIAL_PLANNER_DIR . '/classes/class-scheduler.php';
/**
* Include metabox handler.
*/
require_once SOCIAL_PLANNER_DIR . '/classes/class-metabox.php';
/**
* Include dashboard handler.
*/
require_once SOCIAL_PLANNER_DIR . '/classes/class-dashboard.php';
/**
* Start with core plugin method.
*/
Core::add_hooks();