Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'service_change_labels', 20 );
- function service_change_labels() {
- $p_object = get_post_type_object( 'service' );
- if ( !$p_object ) {
- return FALSE;
- }
- // see get_post_type_labels()
- $p_object->label = 'Courses';
- $p_object->labels->name = 'Courses';
- $p_object->labels->singular_name = 'Course';
- $p_object->labels->add_new = 'Add Course';
- $p_object->labels->add_new_item = 'Add new Course';
- $p_object->labels->all_items = 'All Courses';
- $p_object->labels->edit_item = 'Edit Course';
- $p_object->labels->name_admin_bar = 'Course';
- $p_object->labels->menu_name = 'Course';
- $p_object->labels->new_item = 'New Course';
- $p_object->labels->not_found = 'No Courses found';
- $p_object->labels->not_found_in_trash = 'No Courses found in trash';
- $p_object->labels->search_items = 'Search Courses';
- $p_object->labels->view_item = 'View Course';
- //var_dump( $p_object );
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement