Created
February 4, 2013 10:44
-
-
Save panych/4706095 to your computer and use it in GitHub Desktop.
Wordpress. Allow to set draft page as a parent page
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
/* | |
* Allow to set draft page as a parent page | |
*/ | |
add_filter( 'page_attributes_dropdown_pages_args', 'enable_drafts_parents' ); | |
add_filter( 'quick_edit_dropdown_pages_args', 'enable_drafts_parents' ); | |
function enable_drafts_parents( $args ) { | |
$args['post_status'] = 'draft,publish,pending'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment