PluginProbe
Import Export Menu / 2.0.1
Import Export Menu v2.0.1
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 2.0.1, at import-export-menu.php

82 lines 2.6 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. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://yukyhendiawan.com
11 * @since 1.0.0
12 * @package Import_Export_Menu
13 *
14 * @wordpress-plugin
15 * Plugin Name: Import Export Menu
16 * Plugin URI: https://yukyhendiawan.com
17 * Description: This plugin allows you to export and import menus in WordPress, making it easier to manage and migrate menu structures between sites.
18 * Version: 2.0.1
19 * Author: Yuky Hendiawan
20 * Author URI: https://yukyhendiawan.com/
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: import-export-menu
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 /**
33 * Currently plugin version.
34 * Start at version 1.0.0 and use SemVer - https://semver.org
35 * Rename this for your plugin and update it as you release new versions.
36 */
37 define( 'IMPORT_EXPORT_MENU_PLUGIN_NAME', 'Import Export Menu' );
38 define( 'IMPORT_EXPORT_MENU_VERSION', '2.0.1' );
39
40 /**
41 * The code that runs during plugin activation.
42 * This action is documented in includes/class-import-export-menu-activator.php
43 */
44 function import_export_menu_activate() {
45 require_once plugin_dir_path( __FILE__ ) . 'includes/class-import-export-menu-activator.php';
46 Import_Export_Menu_Activator::activate();
47 }
48
49 /**
50 * The code that runs during plugin deactivation.
51 * This action is documented in includes/class-import-export-menu-deactivator.php
52 */
53 function import_export_menu_deactivate() {
54 require_once plugin_dir_path( __FILE__ ) . 'includes/class-import-export-menu-deactivator.php';
55 Import_Export_Menu_Deactivator::deactivate();
56 }
57
58 register_activation_hook( __FILE__, 'import_export_menu_activate' );
59 register_deactivation_hook( __FILE__, 'import_export_menu_deactivate' );
60
61 /**
62 * The core plugin class that is used to define internationalization,
63 * admin-specific hooks, and public-facing site hooks.
64 */
65 require plugin_dir_path( __FILE__ ) . 'includes/class-import-export-menu.php';
66
67 /**
68 * Begins execution of the plugin.
69 *
70 * Since everything within the plugin is registered via hooks,
71 * then kicking off the plugin from this point in the file does
72 * not affect the page life cycle.
73 *
74 * @since 1.0.0
75 */
76 function import_export_menu_run() {
77
78 $plugin = new Import_Export_Menu();
79 $plugin->run();
80 }
81 import_export_menu_run();
82