var\\u转储的结果(“parse\\u query”):
WP_Hook::__set_state(array(
\'callbacks\' =>
array (
10 =>
array (
\'0000000003c8dc5e000000004a442b5dsort_menu_item_queries_by_menu_order\' =>
array (
\'function\' =>
array (
0 =>
WM_Nova_Restaurant::__set_state(array(
\'version\' => \'0.1\',
\'default_menu_item_loop_markup\' =>
array (
\'menu_tag\' => \'section\',
\'menu_class\' => \'menu-items\',
\'menu_header_tag\' => \'header\',
\'menu_header_class\' => \'menu-group-header\',
\'menu_title_tag\' => \'h1\',
\'menu_title_class\' => \'menu-group-title\',
\'menu_description_tag\' => \'div\',
\'menu_description_class\' => \'menu-group-description\',
),
\'menu_item_loop_markup\' =>
array (
\'menu_tag\' => \'section\',
\'menu_class\' => \'menu-items\',
\'menu_header_tag\' => \'header\',
\'menu_header_class\' => \'menu-group-header\',
\'menu_title_tag\' => \'h2\',
\'menu_title_class\' => \'menu-group-title\',
\'menu_description_tag\' => \'div\',
\'menu_description_class\' => \'menu-group-description\',
),
\'menu_item_loop_last_term_id\' => false,
\'menu_item_loop_current_term\' => false,
)),
1 => \'sort_menu_item_queries_by_menu_order\',
),
\'accepted_args\' => 1,
),
),
),
\'iterations\' =>
array (
),
\'current_priority\' =>
array (
),
\'nesting_level\' => 0,
\'doing_action\' => false,
))
我试过这些,但都不管用:
function RBTM_my_func(){
global $WM_Nova_Restaurant;
remove_action(\'parse_query\',\'WM_Nova_Restaurant\', 10);
remove_action(\'parse_query\', \'WM_Nova_Restaurant>sort_menu_item_queries_by_menu_order\', 10);
remove_action(\'parse_query\',array("WM_Nova_Restaurant", "sort_menu_item_queries_by_menu_order"), 10);
remove_action(\'parse_query\', array("WM_Nova_Restaurant", "sort_menu_item_queries_by_menu_order"), 1);
remove_action(\'parse_query\',array($WM_Nova_Restaurant, "sort_menu_item_queries_by_menu_order"), 10);
do_hard_unregister_object_callback( \'parse_query\', 10, \'RBTM_my_func\');
}
add_action(\'parse_tax_query\', \'RBTM_my_func\', 10);
那么如何删除这个特定的类函数呢?
WM_Nova_Restaurant->sort_menu_item_queries_by_menu_order
link我试图寻找答案,但什么也找不到。任何帮助都将不胜感激,谢谢!!!