• Resolved acgorecki

    (@acgorecki)


    When you go into the WP dashboard and select Posts, you get more options. One of those options is “All Posts.”
    Is there a way to change that to say “All Drafts,” and link to your drafts? I feel like that is more useful if you are constantly posting and editing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s right here:

    https://cl.ly/image/3M193y0k2h1m

    This is messy & quick, but it you want it in the dash nav, you can add it into a plugin and/or theme’s function.php with:

    add_action('wp','add_alldrafts_into_dash');
    function fasdfasdfasdfas() {
    	global $submenu;
            if (is_admin())
    	  $submenu['edit.php'][] = array('All Drafts','edit_drafts','edit.php?post_status=draft&post_type=post');
            return;
    }

    It won’t highlight, it’s not using the right hook/filter, but it’s a duct tape way to get it done. If you want to *really* add it properly check out add_submenu_page() then things like how wordpress creates the admin tables, etc.

    Thread Starter acgorecki

    (@acgorecki)

    Thanks, @davidsword.

    You were able to lead me in the right direction. After I FTPed into my theme’s function.php, I found another solutiion similar to yours that might be useful to anyone else wanting to make similar changes. It can be found here.

    a much better option! I had scanned add_posts_page() but obviously didn’t look into it enough – that’s a much cleaner solution!

    please mark thread resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change "All Posts" link in dashboard to "All Drafts"’ is closed to new replies.