PluginProbe
Import Export Menu / 3.0.0
Import Export Menu v3.0.0
trunk 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 2.0.1 2.0.2 2.0.3 3.0.0
import-export-menu / import-export-menu.php

import-export-menu.php in Import Export Menu 3.0.0, at import-export-menu.php

70 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. It defines plugin-wide constants, registers activation/deactivation
7 * hooks, loads the Composer autoloader, and kicks off the ImportExportMenu\Plugin runtime.
8 *
9 * @link https://yukyhendiawan.com
10 * @since 1.0.0
11 * @package Import_Export_Menu
12 *
13 * @wordpress-plugin
14 * Plugin Name: Import Export Menu
15 * Plugin URI: https://wordpress.org/plugins/import-export-menu/
16 * Description: Import, export, and manage WordPress navigation menus. Safely migrate menu structures between sites with hierarchy, locations, and item settings intact.
17 * Version: 3.0.0
18 * Author: Yuky Hendiawan
19 * Author URI: https://yukyhendiawan.com/
20 * License: GPL-2.0+
21 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
22 * Text Domain: import-export-menu
23 * Domain Path: /languages
24 * Requires at least: 6.0
25 * Requires PHP: 7.4
26 */
27
28 // If this file is called directly, abort.
29 if ( ! defined( 'WPINC' ) ) {
30 die;
31 }
32
33 /**
34 * Currently plugin version.
35 * Start at version 1.0.0 and use SemVer - https://semver.org
36 * Rename this for your plugin and update it as you release new versions.
37 */
38 define( 'IMPORT_EXPORT_MENU_VERSION', '3.0.0' );
39 define( 'IMPORT_EXPORT_MENU_NAME', 'Import Export Menu' );
40 /** Plugin root URL (with trailing slash, provided by plugin_dir_url()). Not a filesystem path. */
41 define( 'IMPORT_EXPORT_MENU_PLUGIN_URL', (string) plugin_dir_url( __FILE__ ) );
42 define( 'IMPORT_EXPORT_MENU_PATH', (string) plugin_dir_path( __FILE__ ) );
43 define( 'IMPORT_EXPORT_MENU_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets/' );
44 define( 'IMPORT_EXPORT_MENU_SLUG', (string) dirname( plugin_basename( __FILE__ ) ) );
45
46 // Hide the bundled field-type showcase: this is a real product, not the starter.
47 // Define this to a falsy value before load (e.g. in the test bootstrap) to keep
48 // the reference gallery available.
49 if ( ! defined( 'IMPORT_EXPORT_MENU_DISABLE_DEMO' ) ) {
50 define( 'IMPORT_EXPORT_MENU_DISABLE_DEMO', true );
51 }
52
53 /**
54 * Composer autoloader — exposes the ImportExportMenu\* PSR-4 namespace.
55 */
56 require __DIR__ . '/vendor/autoload.php';
57
58 register_activation_hook( __FILE__, array( \ImportExportMenu\Activator::class, 'activate' ) );
59 register_deactivation_hook( __FILE__, array( \ImportExportMenu\Deactivator::class, 'deactivate' ) );
60
61 /**
62 * Begins execution of the plugin.
63 *
64 * Everything within the plugin is registered via hooks, so kicking off here
65 * does not affect the page life cycle.
66 *
67 * @since 1.0.0
68 */
69 ( new \ImportExportMenu\Plugin( 'import-export-menu', IMPORT_EXPORT_MENU_VERSION ) )->run();
70