Created
January 3, 2013 16:17
-
-
Save wpsmith/4444615 to your computer and use it in GitHub Desktop.
Add private/draft/future/pending pages to parent dropdown in page attributes and Quick Edit
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
<?php | |
add_filter( 'page_attributes_dropdown_pages_args', 'wps_dropdown_pages_args_add_parents' ); | |
add_filter( 'quick_edit_dropdown_pages_args', 'wps_dropdown_pages_args_add_parents' ); | |
/** | |
* Add private/draft/future/pending pages to parent dropdown. | |
*/ | |
function wps_dropdown_pages_args_add_parents( $dropdown_args, $post = NULL ) { | |
$dropdown_args['post_status'] = array( 'publish', 'draft', 'pending', 'future', 'private', ); | |
return $dropdown_args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment