Hooking get_pages()
I find the way, but it doesn”t work for my case because the plugin uses another function to link to parent pages, without using get_pages()so the result is so inconsistent. But the filter is working. // Get all posts with the meta key ‘not_in_menu’ function get_not_in_menu_posts() { $post_ids = wp_cache_get( ‘wl_not_in_menu’ ); if ( false … Read more