Change menu wording and labels on admin
-
OK. I’ve figured out part of it, but I’m still trying to change the wording in the admin Events menu and some labels on the tribe_events post page.
Using the following similar code, I am able to change part of the menu and labels, but still cannot figure out how to change “Event Categories” to “Employees” for Menu AND Labels.
What are [5][0], [10][0], [15][0] supposed to be?
And what $labels->?????? am I supposed to use?
ANYBODY HAVE AN IDEA?
/*****************************************************/
function change_post_menu_label() {
global $menu;
global $submenu;
$menu[6][0] = ‘Job Info’;****$submenu[‘edit.php’][5][0] = ‘Jobs’; WRONG
****$submenu[‘edit.php’][10][0] = ‘Add Jobs’; WRONG
****$submenu[‘edit.php’][15][0] = ‘Employees’; // Change name for categories WRONGecho ”;
}function change_post_object_label() {
global $wp_post_types;
$labels = &$wp_post_types[‘tribe_events’]->labels;
$labels->name = ‘Job Info’;
$labels->singular_name = ‘Job’;
$labels->add_new = ‘Add Job’;
$labels->add_new_item = ‘Add Job’;
$labels->edit_item = ‘Edit Jobs’;
$labels->new_item = ‘Job’;
$labels->view_item = ‘View Job’;
$labels->search_items = ‘Search Jobs’;
$labels->not_found = ‘No Jobs found’;
$labels->not_found_in_trash = ‘No Jobs found in Trash’;
$labels->taxonomy = ‘xxxx’;}
add_action( ‘init’, ‘change_post_object_label’ );
add_action( ‘admin_menu’, ‘change_post_menu_label’ );/*****************************************************/
- The topic ‘Change menu wording and labels on admin’ is closed to new replies.