Created
December 17, 2015 00:05
-
-
Save joshfeck/212a67e1227fa874630c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
// change the post type slug URL to be "locations" | |
add_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite', 'my_custom_venue_slug', 10, 2 ); | |
function my_custom_venue_slug( $slug, $post_type ) { | |
if ( $post_type == 'espresso_venues' ) { | |
$custom_slug = array( 'slug' => 'locations' ); | |
return $custom_slug; | |
} | |
return $slug; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment