With custom post types, almost everything is a post, so it is somewhat outdated and sometimes confusing that the blog section is still called “posts”. This section is usually used the blog, so it is sometimes necessary to rename it as such.

 

function change_post_menu_label()

 This function simply changes the global arrays (menu and submenu) that contain the main WordPress menu item names, both at the top level (menu) and the secondary items (submenu).

 

add_action( ‘admin_menu’, ‘change_post_menu_label’ );

 This WordPress hook causes that the function change_post_menu_label to run on admin menu load.

 

function change_post_object_label()

 This function is similar to the previous in that it hooks into WordPress global arrays to update the already defined names, in this case ‘post’, ‘posts’ etc.