WordPress | Change “posts” label in admn

This time i’m developing a blog made in wordpress.
This blog, can have more authors that can came from different background, so, one of the customer requests is to try to made the administration more simple as possibile.

For do that we had decide to use default “posts” section as blog section ( so if anyone of the authors as worked with wordpress will have no problem to use it .. ).

We need to modify only one thing, change the label “posts” in something more ” recognizable ” for users that never had used wordpress before.

For do that add this snippet directly in your theme’s function.php and change all label you need :

* Rename backend menu voice "posts" in "Blog posts"

function collio_change_post_label() {
    global $menu;
    global $submenu;
    $menu[5][0] = 'Blog posts';
    $submenu['edit.php'][5][0] = 'Blog posts';
    $submenu['edit.php'][10][0] = 'Add blog post';
    $submenu['edit.php'][16][0] = 'Blog posts Tags';
function collio_change_post_object() {
    global $wp_post_types;
    $labels = &$wp_post_types['post']->labels;
    $labels->name = 'Blog posts';
    $labels->singular_name = 'Blog post';
    $labels->add_new = 'Add Blog post';
    $labels->add_new_item = 'Add Blog post';
    $labels->edit_item = 'Edit Blog post';
    $labels->new_item = 'Blog post';
    $labels->view_item = 'View Blog post';
    $labels->search_items = 'Search Blog post';
    $labels->not_found = 'No Blog post found';
    $labels->not_found_in_trash = 'No Blog posts found in Trash';
    $labels->all_items = 'All Blog posts';
    $labels->menu_name = 'Blog posts';
    $labels->name_admin_bar = 'Blog posts';
add_action( 'admin_menu', 'collio_change_post_label' );
add_action( 'init', 'collio_change_post_object' );

Reload the admin page and the trick is done .

That’s all.