Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PLACE THESE FUNCTIONS INSIDE THE __construct() function
- add_filter( 'page_attributes_dropdown_pages_args', array(&$this, 'filter_post_show_all_parents'), 1, 1 );
- add_filter( 'quick_edit_dropdown_pages_args', array(&$this, 'filter_post_show_all_parents'), 1, 1 );
- // PLACE THIS FUNCTION OUTSIDE OF THE __construct() FUNCTION BUT INSIDE THE Theme_Loader CLASS
- public function filter_post_show_all_parents($args){
- $args['post_status'] = array(
- 'publish',
- 'draft',
- 'private'
- );
- return $args;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement