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