<?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; | |
} |
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
How do I put this code in – functions.php?
Thanks! 🙂
Just what I’m looking for!