. * * * █████╗ ██████╗ ████████╗██╗ ██╗██╗ ██╗██████╗ * ██╔══██╗██╔══██╗╚══██╔══╝██║ ██║██║ ██║██╔══██╗ * ███████║██████╔╝ ██║ ███████║██║ ██║██████╔╝ * ██╔══██║██╔══██╗ ██║ ██╔══██║██║ ██║██╔══██╗ * ██║ ██║██║ ██║ ██║ ██║ ██║╚██████╔╝██║ ██║ * ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ * * ██████╗ █████╗ ██████╗ ███████╗ ██████╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ███╗ ██╗ * ██╔════╝ ██╔══██╗██╔══██╗██╔════╝██╔════╝ ██║████╗ ██║╚██╗ ██╔╝██╔══██╗████╗ ██║ * ██║ ███╗███████║██████╔╝█████╗ ██║ ███╗██║██╔██╗ ██║ ╚████╔╝ ███████║██╔██╗ ██║ * ██║ ██║██╔══██║██╔══██╗██╔══╝ ██║ ██║██║██║╚██╗██║ ╚██╔╝ ██╔══██║██║╚██╗██║ * ╚██████╔╝██║ ██║██║ ██║███████╗╚██████╔╝██║██║ ╚████║ ██║ ██║ ██║██║ ╚████║ * ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ * */ /** * Prevent Direct Access */ defined( 'ABSPATH' ) or die( "Restricted access!" ); /** * Define global constants */ $plugin_data = get_file_data( __FILE__, array( 'name' => 'Plugin Name', 'version' => 'Version', 'text' => 'Text Domain' ) ); function spacexchimp_p005_define_constants( $constant_name, $value ) { $constant_name = 'SPACEXCHIMP_P005_' . $constant_name; if ( !defined( $constant_name ) ) define( $constant_name, $value ); } spacexchimp_p005_define_constants( 'DIR', dirname( plugin_basename( __FILE__ ) ) ); spacexchimp_p005_define_constants( 'BASE', plugin_basename( __FILE__ ) ); spacexchimp_p005_define_constants( 'URL', plugin_dir_url( __FILE__ ) ); spacexchimp_p005_define_constants( 'PATH', plugin_dir_path( __FILE__ ) ); spacexchimp_p005_define_constants( 'SLUG', dirname( plugin_basename( __FILE__ ) ) ); spacexchimp_p005_define_constants( 'NAME', $plugin_data['name'] ); spacexchimp_p005_define_constants( 'VERSION', $plugin_data['version'] ); spacexchimp_p005_define_constants( 'TEXT', $plugin_data['text'] ); spacexchimp_p005_define_constants( 'PREFIX', 'spacexchimp_p005' ); spacexchimp_p005_define_constants( 'SETTINGS', 'spacexchimp_p005' ); /** * Load the plugin modules */ require_once( SPACEXCHIMP_P005_PATH . 'inc/php/core.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/upgrade.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/versioning.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/enqueue.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/functional.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/controls.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/page.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/messages.php' ); require_once( SPACEXCHIMP_P005_PATH . 'inc/php/uninstall.php' );