From a3524c95f373bbb86a6a883c8a484d73741e05bc Mon Sep 17 00:00:00 2001 From: Caleb Burks <19caleb95@gmail.com> Date: Wed, 24 Aug 2016 18:26:14 -0500 Subject: [PATCH] Filter instead of action --- includes/admin/class-wc-admin-menus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-menus.php b/includes/admin/class-wc-admin-menus.php index 0e3dbe71248..57cf461a631 100644 --- a/includes/admin/class-wc-admin-menus.php +++ b/includes/admin/class-wc-admin-menus.php @@ -39,7 +39,7 @@ class WC_Admin_Menus { add_filter( 'custom_menu_order', array( $this, 'custom_menu_order' ) ); // Rename taxonomies at Appearance > Menus > Pages - add_action( 'nav_menu_meta_box_object', array( $this, 'rename_nav_menu_meta_boxes' ) ); + add_filter( 'nav_menu_meta_box_object', array( $this, 'rename_nav_menu_meta_boxes' ) ); // Add endpoints custom URLs in Appearance > Menus > Pages add_action( 'admin_init', array( $this, 'add_nav_menu_meta_boxes' ) );