Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix The Events Calendar 4.6 update for custom url slug
<?php
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