Merge pull request #13814 from woocommerce/fix-13813

Load custom "WooCommerce endpoint" metabox only in Appearance > Menus.
This commit is contained in:
Mike Jolley 2017-03-29 18:20:52 +01:00 committed by GitHub
commit 4e58d40404
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ class WC_Admin_Menus {
add_filter( 'menu_order', array( $this, 'menu_order' ) );
add_filter( 'custom_menu_order', array( $this, 'custom_menu_order' ) );
// Add endpoints custom URLs in Appearance > Menus > Pages
add_action( 'admin_init', array( $this, 'add_nav_menu_meta_boxes' ) );
// Add endpoints custom URLs in Appearance > Menus > Pages.
add_action( 'admin_head-nav-menus.php', array( $this, 'add_nav_menu_meta_boxes' ) );
// Admin bar menus
if ( apply_filters( 'woocommerce_show_admin_bar_visit_store', true ) ) {