2 environment options. * * @global bool PRODUCTION_ENV Whether the plugin is running in production mode or not. */ define( 'PRODUCTION_ENV', false ); /** * Handles the activation of the plugin. * * @since 2.8.0 * @see includes\Activator::activate() */ function activate_footnotes(): void { /** * Provides plugin activation functionality. */ require_once plugin_dir_path( __FILE__ ) . 'includes/class-activator.php'; includes\Activator::activate(); } /** * Handles the deactivation of the plugin. * * @since 2.8.0 * @see includes\Deactivator::deactivate() */ function deactivate_footnotes(): void { /** * Provides plugin deactivation functionality. */ require_once plugin_dir_path( __FILE__ ) . 'includes/class-deactivator.php'; includes\Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_footnotes' ); register_deactivation_hook( __FILE__, 'deactivate_footnotes' ); /** * The core plugin class that defines internationalization, admin-specific and * public-facing site hooks and functionality. */ require_once plugin_dir_path( __FILE__ ) . 'includes/class-core.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, then kicking off * the plugin from this point in the file does not affect the page life cycle. * * @since 2.8.0 */ function run_footnotes(): void { /** * The plugin core. * * @global includes\Core $footnotes */ global $footnotes; $footnotes = new includes\Core(); $footnotes->run(); } run_footnotes();