Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2018 20:30
What would you like to do?
Fix The Events Calendar 4.6 update for custom url slug
function filter_tribe_bases( $bases = array() ){
$rewriteSlug = sanitize_title( Tribe__Settings_Manager::get_option( ‘eventsSlug’, ‘events’ ) );
$bases[‘archive’] = array( $rewriteSlug );
return $bases;
add_filter( ‘tribe_events_rewrite_base_slugs’, ‘filter_tribe_bases’ );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment