Created
December 28, 2015 02:20
-
-
Save nathaningram/6b3a5ff133226bfe6808 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Make Private Pages show in Parent Page List | |
| function bla_handle_privates_adding( $args ) { | |
| if ( ! current_user_can( 'read_private_pages' ) ) { | |
| return $args; | |
| } | |
| $defaults = array( 'post_status' => 'publish,private' ); | |
| return wp_parse_args( $args, $defaults ); | |
| } | |
| add_filter( 'wp_page_menu_args', 'bla_handle_privates_adding' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment