| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: RoleMaster Suite |
| 4 |
* Plugin URI: https://jeweltheme.com |
| 5 |
* Description: User Roles & Capability Plugin |
| 6 |
* Version: 1.0.4 |
| 7 |
* Author: Jewel Theme |
| 8 |
* Author URI: https://jeweltheme.com/user-role-editor |
| 9 |
* Text Domain: rolemaster-suite |
| 10 |
* Domain Path: languages/ |
| 11 |
* License: GPLv3 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 13 |
* |
| 14 |
* @package rolemaster-suite |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 18 |
|
| 19 |
$rolemaster_suite_plugin_data = get_file_data( |
| 20 |
__FILE__, |
| 21 |
array( |
| 22 |
'Version' => 'Version', |
| 23 |
'Plugin Name' => 'Plugin Name', |
| 24 |
'Author' => 'Author', |
| 25 |
'Description' => 'Description', |
| 26 |
'Plugin URI' => 'Plugin URI', |
| 27 |
), |
| 28 |
false |
| 29 |
); |
| 30 |
|
| 31 |
// Define Constants. |
| 32 |
if ( ! defined( 'ROLEMASTER' ) ) { |
| 33 |
define( 'ROLEMASTER', $rolemaster_suite_plugin_data['Plugin Name'] ); |
| 34 |
} |
| 35 |
|
| 36 |
if ( ! defined( 'ROLEMASTER_VER' ) ) { |
| 37 |
define( 'ROLEMASTER_VER', $rolemaster_suite_plugin_data['Version'] ); |
| 38 |
} |
| 39 |
|
| 40 |
if ( ! defined( 'ROLEMASTER_AUTHOR' ) ) { |
| 41 |
define( 'ROLEMASTER_AUTHOR', $rolemaster_suite_plugin_data['Author'] ); |
| 42 |
} |
| 43 |
|
| 44 |
if ( ! defined( 'ROLEMASTER_DESC' ) ) { |
| 45 |
define( 'ROLEMASTER_DESC', $rolemaster_suite_plugin_data['Author'] ); |
| 46 |
} |
| 47 |
|
| 48 |
if ( ! defined( 'ROLEMASTER_URI' ) ) { |
| 49 |
define( 'ROLEMASTER_URI', $rolemaster_suite_plugin_data['Plugin URI'] ); |
| 50 |
} |
| 51 |
|
| 52 |
if ( ! defined( 'ROLEMASTER_DIR' ) ) { |
| 53 |
define( 'ROLEMASTER_DIR', __DIR__ ); |
| 54 |
} |
| 55 |
|
| 56 |
if ( ! defined( 'ROLEMASTER_FILE' ) ) { |
| 57 |
define( 'ROLEMASTER_FILE', __FILE__ ); |
| 58 |
} |
| 59 |
|
| 60 |
if ( ! defined( 'ROLEMASTER_SLUG' ) ) { |
| 61 |
define( 'ROLEMASTER_SLUG', dirname( plugin_basename( __FILE__ ) ) ); |
| 62 |
} |
| 63 |
|
| 64 |
if ( ! defined( 'ROLEMASTER_BASE' ) ) { |
| 65 |
define( 'ROLEMASTER_BASE', plugin_basename( __FILE__ ) ); |
| 66 |
} |
| 67 |
|
| 68 |
if ( ! defined( 'ROLEMASTER_PATH' ) ) { |
| 69 |
define( 'ROLEMASTER_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) ); |
| 70 |
} |
| 71 |
|
| 72 |
if ( ! defined( 'ROLEMASTER_URL' ) ) { |
| 73 |
define( 'ROLEMASTER_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) ); |
| 74 |
} |
| 75 |
|
| 76 |
if ( ! defined( 'ROLEMASTER_INC' ) ) { |
| 77 |
define( 'ROLEMASTER_INC', ROLEMASTER_PATH . '/Inc/' ); |
| 78 |
} |
| 79 |
|
| 80 |
if ( ! defined( 'ROLEMASTER_LIBS' ) ) { |
| 81 |
define( 'ROLEMASTER_LIBS', ROLEMASTER_PATH . 'Libs' ); |
| 82 |
} |
| 83 |
|
| 84 |
if ( ! defined( 'ROLEMASTER_ASSETS' ) ) { |
| 85 |
define( 'ROLEMASTER_ASSETS', ROLEMASTER_URL . 'assets/' ); |
| 86 |
} |
| 87 |
|
| 88 |
if ( ! defined( 'ROLEMASTER_IMAGES' ) ) { |
| 89 |
define( 'ROLEMASTER_IMAGES', ROLEMASTER_ASSETS . 'images/' ); |
| 90 |
} |
| 91 |
|
| 92 |
if ( ! class_exists( '\\ROLEMASTER\\Rolemaster_Suite' ) ) { |
| 93 |
// Autoload Files. |
| 94 |
include_once ROLEMASTER_DIR . '/vendor/autoload.php'; |
| 95 |
// Instantiate Rolemaster_Suite Class. |
| 96 |
include_once ROLEMASTER_DIR . '/class-rolemaster-suite.php'; |
| 97 |
} |
| 98 |
|
| 99 |
// Activation and Deactivation hooks. |
| 100 |
// if ( class_exists( '\\ROLEMASTER\\Rolemaster_Suite' ) ) { |
| 101 |
// register_activation_hook( ROLEMASTER_FILE, array( '\\ROLEMASTER\\Rolemaster_Suite', 'rolemaster_suite_activation_hook' ) ); |
| 102 |
// register_deactivation_hook( ROLEMASTER_FILE, array( '\\ROLEMASTER\\Rolemaster_Suite', 'rolemaster_suite_deactivation_hook' ) ); |
| 103 |
// } |