Show Published Pages AND Posts by Default
-
So I’ve got the following custom plugin which works like a charm for “pages”.
But how can I modify it to also work with “posts”?
The idea is that I want the default view of the “pages” dashboard screen & “posts” dashboard screen to show the “Published” not “All”.
TIAfunction wcs_change_admin_page_link() { global $submenu; $submenu['edit.php?post_type=page'][5][2] = 'edit.php?post_type=page&post_status=publish'; } add_action( 'admin_menu', 'wcs_change_admin_page_link' );BONUS points if you can show me how to extend it to work for custom post types like:
edit.php?post_type=fl-theme-layout
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Show Published Pages AND Posts by Default’ is closed to new replies.