Skip to content

Instantly share code, notes, and snippets.

@ceaksan
Last active November 12, 2015 00:58
Show Gist options
  • Save ceaksan/0c8c6a8a2bc8b71d71a4 to your computer and use it in GitHub Desktop.
Save ceaksan/0c8c6a8a2bc8b71d71a4 to your computer and use it in GitHub Desktop.
function cea_wpAddMenuDrafts() {
add_posts_page(__('Drafts'), __('Drafts'), 'read', 'edit.php?post_status=draft&post_type=post');
}
add_action('admin_menu', 'cea_wpAddMenuDrafts');
$count_posts = wp_count_posts();
$draft_posts = $count_posts->draft;
$future_posts = $count_posts->future;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment