Last active
August 29, 2015 14:04
-
-
Save norcross/8fbf4f4a8e0e6523fad1 to your computer and use it in GitHub Desktop.
change default 'pages' link to show only published
This file contains 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
<?php | |
add_action ( 'admin_menu', 'rkv_edit_admin_page_link_default' ); | |
function rkv_edit_admin_page_link_default() { | |
// call global submenu item | |
global $submenu; | |
// edit main link for posts | |
$submenu['edit.php'][5][2] = 'edit.php?post_status=publish'; | |
// edit main link for pages | |
$submenu['edit.php?post_type=page'][5][2] = 'edit.php?post_type=page&post_status=publish'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah buddy! thanks!