Home / Admin / Extra WordPress Filters in Pro (Update single event pretty permalink to avoid permalink conflict) | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Extra WordPress Filters in Pro (Update single event pretty permalink to avoid permalink conflict) | Display Eventbrite Events

Using this filter, you can update single event pretty permalink to avoid permalink conflict. By default, the single event pretty permalink is identified by /e/. If /e/ causes conflicts with existing pages or links you can filter this to something else e.g. /eb_event/. After applying a change, you need to refresh permalinks, do this via Tools > Permalinks and SAVE.

filter: (‘wfea_single_event_slug‘ , $slug)

(Note this code snippet applies for "Display Eventbrite Events Plugin" Pro Version available here: https://fullworksplugins.com/products/widget-for-eventbrite/ )

Code Preview
php
<?php
add_filter('wfea_single_event_slug', function() { return 'eb_event'; });

Comments

Add a Comment