SAlut,
Am gasit un cod foarte util pentru adaugarea unei scurtaturi in meniul POSTS pentru a ajunge direct la DRAFTS.
E foarte simplu, eu l-am folosit si m-am gandit ca poate va ajuta si pe voi.
Iata cum se face ( postez articolul din care m-am inspirat pentru a intelege mai usor pasii de urmat ):
"The existing menus in WordPress are solid but one annoyance is that I need to click "All Posts" and then the "Drafts" link to get to my drafts; I simply want to get there as quickly as possible via the Posts menu. I did some quick research on the topic and in two minutes I was able to add a "Drafts" submenu item to the "Posts" menu. Here's how I did it!
Within the functions.php file of my current theme (this file gets loaded even for admin!), I added the following:
// Add menu item for draft posts
function add_drafts_admin_menu_item() {
// $page_title, $menu_title, $capability, $menu_slug, $callback_function
add_posts_page(__('Drafts'), __('Drafts'), 'read', 'edit.php?post_status=draft&post_type=post');
}
add_action('admin_menu', 'add_drafts_admin_menu_item');
Rezultatul este asa :
drafts.png


Răspunde cu citat