Add the sample code below to your child theme's functions.php file or in a site specific plugin.
Change replaceme in the example below to the slug that you would like to use. For example, if you wanted to change venues to locations, then you should change replaceme to locations and then save changes to your file.
Then be sure to browse to Settings --> Permalinks afterwards within your WP Dashboard to refresh your permalinks.
<?php
//* Do NOT include the opening php tag
//* Change the default venue slug to something else in Event Espresso 4
add_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite', 'ee_custom_venues_slug', 10, 2 );
function ee_custom_venues_slug( $slug, $post_type ) {
if ( $post_type == 'espresso_venues' ) {
$custom_slug = array( 'slug' => 'replaceme' );
return $custom_slug;
}
return $slug;
}
Related:
https://eventespresso.com/wiki/change-events-cpt-slug/
https://gist.github.com/lorenzocaum/16cc1c184f82c9431fcf
References:
http://eventespresso.com/topic/venues-page/
https://eventespresso.com/topic/venues-permalink/
http://eventespresso.com/wiki/change-events-cpt-slug/