Change WP Admin Dashboard labels for default post type

Sometimes a less tech savvy client or wordpress webmaster may find it confusing to manage content via posts, especially when they are managing a specific type of content, ie. services. More people and companies are starting to use WordPress to manage their small or local business websites, these people may not have a need for a blog and simply seeing “posts” can be overwhelming.

You can add a code snippet to your WordPress Theme’s functions.php file to modify the labels for WordPress’s default post type.

Here’s the process to change the labels (ie. Services in my example).


function change_post_menu_label() {
global $menu;
global $submenu;
$menu[5][0] = 'Services';
$submenu['edit.php'][5][0] = 'Services';
$submenu['edit.php'][10][0] = 'Add Services';
$submenu['edit.php'][15][0] = 'Status'; // Change name for categories
$submenu['edit.php'][16][0] = 'Labels'; // Change name for tags
echo '';

function change_post_object_label() {
global $wp_post_types;
$labels = &$wp_post_types[‘post’]->labels;
$labels->name = ‘Services’;
$labels->singular_name = ‘Service’;
$labels->add_new = ‘Add Service’;
$labels->add_new_item = ‘Add Service’;
$labels->edit_item = ‘Edit Services’;
$labels->new_item = ‘Service’;
$labels->view_item = ‘View Service’;
$labels->search_items = ‘Search Services’;
$labels->not_found = ‘No Services found’;
$labels->not_found_in_trash = ‘No Services found in Trash’;
add_action( ‘init’, ‘change_post_object_label’ );
add_action( ‘admin_menu’, ‘change_post_menu_label’ );

To customize the admin menu order of your wordpress admin dashboard, add the following code snippet to the functions.php file:

function custom_menu_order($menu_ord) {
if (!$menu_ord) return true;
return array(
'index.php', // this represents the dashboard link
'edit.php', //the posts tab
'upload.php', // the media manager
'edit.php?post_type=page', //the posts tab
add_filter('custom_menu_order', 'custom_menu_order');
add_filter('menu_order', 'custom_menu_order');

More resources: