-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwp-menu-custom-fields.php
32 lines (28 loc) · 1.04 KB
/
wp-menu-custom-fields.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Plugin Name: WP Menu Custom Fields
* Description: Adds custom fields on menu items under Appearance -> Menus and shows it on front-end.
* Plugin URI: https://wordpress.org/plugins/wp-menu-custom-fields/
* Author: rtCamp
* Author URI: https://rtcamp.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Version: 1.1
* Text Domain: wp-menu-custom-fields
*
* @package wp-menu-custom-fields
*/
define( 'WP_MENU_CUSTOM_FIELDS_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'WP_MENU_CUSTOM_FIELDS_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
// phpcs:disable WordPressVIPMinimum.Files.IncludingFile.UsingCustomConstant
require_once WP_MENU_CUSTOM_FIELDS_PATH . '/inc/helpers/autoloader.php';
// phpcs:enable WordPressVIPMinimum.Files.IncludingFile.UsingCustomConstant
/**
* To load plugin manifest class.
*
* @return void
*/
function wp_menu_custom_fields_plugin_loader() {
\WP_Menu_Custom_Fields\Inc\Plugin::get_instance();
}
wp_menu_custom_fields_plugin_loader();