×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Ruhul Amin
Added: Aug 25, 2021 11:03 PM
Views: 3447
Tags: no tags
  1. add_action( 'wp_loaded', 'wpse_19240_change_place_labels', 20 );
  2.  
  3. function wpse_19240_change_place_labels() {
  4.  $p_object = get_post_type_object( 'avada_portfolio' );
  5.  
  6.  if ( ! $p_object ) {
  7.   return FALSE;
  8.  }
  9.  
  10.  // see get_post_type_labels()
  11.  $p_object->labels->name               = 'Doctors';
  12.  $p_object->labels->singular_name      = 'Doctor';
  13.  $p_object->labels->add_new            = 'Add Doctor';
  14.  $p_object->labels->add_new_item       = 'Add new Doctor';
  15.  $p_object->labels->all_items          = 'All Doctors';
  16.  $p_object->labels->edit_item          = 'Edit Doctor';
  17.  $p_object->labels->name_admin_bar     = 'Doctor';
  18.  $p_object->labels->menu_name          = 'Doctor';
  19.  $p_object->labels->new_item           = 'New Doctor';
  20.  $p_object->labels->not_found          = 'No Doctors found';
  21.  $p_object->labels->not_found_in_trash = 'No Doctors found in trash';
  22.  $p_object->labels->search_items       = 'Search Doctors';
  23.  $p_object->labels->view_item          = 'View Doctor';
  24.  
  25.  return TRUE;
  26. }