Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SHOW "mine" PAGES PANEL BY DEFAULT ----------------------------------------------
- add_action( 'admin_menu', 'ten80_pages_default_mine' );
- function ten80_pages_default_mine(){
- global $submenu;
- global $current_user;
- get_currentuserinfo();
- if( current_user_can( 'edit_published_posts' ) ):
- $submenu['edit.php?post_type=page'][5][2] .= "&author_name=".$current_user->user_nicename;
- endif;
- return;
- } // end ten80_pages_default_mine()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement