I am looking at doing something similar and I want to change Places to Dive Sites. Here’s my code that works.
function custom_map_rewrite($args) {
$labels = array(
'name' => __( 'Dive Sites', 'dive-center' ),
'singular_name' => __( 'Dive Site', 'dive-center' ),
'menu_name' => _x( 'Dive Sites', 'Admin menu name', 'dive-center' ),
'add_new' => __( 'Add Dive Site', 'dive-center' ),
'add_new_item' => __( 'Add New Dive Site', 'dive-center' ),
'edit' => __( 'Edit', 'dive-center' ),
'edit_item' => __( 'Edit Dive Site', 'dive-center' ),
'new_item' => __( 'New Dive Site', 'dive-center' ),
'view' => __( 'View Dive Site', 'dive-center' ),
'view_item' => __( 'View Dive Site', 'dive-center' ),
'search_items' => __( 'Search Dive Sites', 'dive-center' ),
'not_found' => __( 'No Dive Sites found', 'dive-center' ),
'not_found_in_trash' => __( 'No Dive Sites found in trash', 'dive-center' ),
'parent' => __( 'Parent Dive Site', 'dive-center' ),
'featured_image' => __( 'Dive Site Image', 'dive-center' ),
'set_featured_image' => __( 'Set dive site image', 'dive-center' ),
'remove_featured_image' => __( 'Remove dive site image', 'dive-center' ),
'use_featured_image' => __( 'Use as dive site image', 'dive-center' ),
'insert_into_item' => __( 'Insert into dive site', 'dive-center' ),
'uploaded_to_this_item' => __( 'Uploaded to this dive site', 'dive-center' ),
'filter_items_list' => __( 'Filter dive sites', 'dive-center' ),
'items_list_navigation' => __( 'Dive Sites navigation', 'dive-center' ),
'items_list' => __( 'Dive Sites list', 'dive-center' ),
'featured_image' => __( 'Dive Site Image', 'dive-center' ),
'set_featured_image' => __( 'Set dive site image', 'dive-center' ),
'remove_featured_image' => __( 'Remove dive site image', 'dive-center' ),
'use_featured_image' => __( 'Use as dive site image', 'dive-center' ),
'insert_into_item' => __( 'Insert into dive site', 'dive-center' ),
'uploaded_to_this_item' => __( 'Uploaded to this dive site', 'dive-center' ),
'filter_items_list' => __( 'Filter dive sites', 'dive-center' ),
'items_list_navigation' => __( 'Dive Sites navigation', 'dive-center' ),
'items_list' => __( 'Dive Sites list', 'dive-center' )
);
$args['labels'] = $labels;
$args['rewrite']['slug'] = 'divesites';
$args['description'] = __( 'This is where you can add new dive sites to your site.', 'dive-center' );
return $args;
}
add_filter( 'stlr_place-post_type_args', 'custom_map_rewrite' );