-
Notifications
You must be signed in to change notification settings - Fork 19
/
issuem.php
76 lines (61 loc) · 2.09 KB
/
issuem.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
<?php
/**
* Main PHP file used to for initial calls to IssueM's classes and functions.
*
* @package IssueM
*/
/*
Plugin Name: IssueM
Plugin URI: https://leakypaywall.com/issuem/
Description: A feature rich magazine and newspaper issue manager plugin for WordPress.
Author: ZEEN101
Version: 2.9.0
Author URI: https://leakypaywall.com/
Tags: issue management, issue manager, magazine management, magazine manager, news management, news manager, periodical manager, periodicial management, publishing, magazine publishing, issue publisher, WordPress magazine
*/
/**
* Defined constants
*
* @since 1.2.0
*/
if ( ! defined( 'ZEEN101_STORE_URL' ) ) {
define( 'ZEEN101_STORE_URL', 'https://zeen101.com' );
}
define( 'ISSUEM_SLUG', 'issuem' );
define( 'ISSUEM_VERSION', '2.9.0' );
define( 'ISSUEM_DB_VERSION', '1.0.0' );
define( 'ISSUEM_URL', plugin_dir_url( __FILE__ ) );
define( 'ISSUEM_PATH', plugin_dir_path( __FILE__ ) );
define( 'ISSUEM_BASENAME', plugin_basename( __FILE__ ) );
define( 'ISSUEM_REL_DIR', dirname( ISSUEM_BASENAME ) );
/**
* Instantiate IssueM class, require helper files
*
* @since 1.2.0
*/
function issuem_plugins_loaded() {
require_once 'issuem-class.php';
// Instantiate the Pigeon Pack class
if ( class_exists( 'IssueM' ) ) {
global $dl_plugin_issuem;
$dl_plugin_issuem = new IssueM();
$issuem_settings = $dl_plugin_issuem->get_settings();
require_once 'issuem-post-type.php';
require_once 'issuem-taxonomy.php';
require_once 'issuem-functions.php';
// license key
include ISSUEM_PATH . 'includes/license-key.php';
if ( empty( $issuem_settings['use_wp_taxonomies'] ) ) {
// Don't load these if we don't have too
require_once 'issuem-cats-taxonomy.php';
require_once 'issuem-tags-taxonomy.php';
}
require_once 'issuem-shortcodes.php';
require_once 'issuem-widgets.php';
require_once 'issuem-feeds.php';
//Internationalization
load_plugin_textdomain( 'issuem', false, ISSUEM_REL_DIR . '/i18n/' );
do_action( 'issuem_loaded' );
}
}
add_action( 'plugins_loaded', 'issuem_plugins_loaded', 4815162342 ); //wait for the plugins to be loaded before init