Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rileypaulsen/5960556 to your computer and use it in GitHub Desktop.
Save rileypaulsen/5960556 to your computer and use it in GitHub Desktop.
show all drafts and pending review in the "parent" dropdown
add_filter( 'page_attributes_dropdown_pages_args', 'so_3538267_enable_drafts_parents' );
add_filter( 'quick_edit_dropdown_pages_args', 'so_3538267_enable_drafts_parents' );
function so_3538267_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