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' ) );