Created
March 26, 2019 19:55
-
-
Save kylephillips/a062c38c4b60c6ed8ab4e6f26ff9eb57 to your computer and use it in GitHub Desktop.
Filter the primary query in Nested Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('nestedpages_page_listing', 'nestedpagesQueryFilter'); | |
function nestedpagesQueryFilter($args) | |
{ | |
$args['post_status'][] = 'custom_post_status'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment