Skip to content

Instantly share code, notes, and snippets.

@kachi
Last active August 7, 2016 22:32
Show Gist options
  • Save kachi/e28a22a30e84e246af7b6c15ef3668ac to your computer and use it in GitHub Desktop.
Save kachi/e28a22a30e84e246af7b6c15ef3668ac to your computer and use it in GitHub Desktop.
<?php
add_filter('page_attributes_dropdown_pages_args', 'add_private_draft');
function add_private_draft($args) {
$args['post_status'] = 'publish,private,draft';
return $args;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment