Skip to content

Instantly share code, notes, and snippets.

@alanef
Created September 6, 2022 18:16
Show Gist options
  • Select an option

  • Save alanef/e8db98a9282de8fb2b5f416e51a9c5cc to your computer and use it in GitHub Desktop.

Select an option

Save alanef/e8db98a9282de8fb2b5f416e51a9c5cc to your computer and use it in GitHub Desktop.
custom filter change free to wfea__free class
/**
* Plugin Name: Display Eventbrite Events - Custom Filters
* Plugin URI: https://fullworksplugins.com/products/widget-for-eventbrite/
* Description: Custom Filters for Display Eventbrite - changes class of free events
* Version: 1.0
* Author: Fullworks
* Author URI: https://fullworksplugins.com/
* License: GPL-2.0
**/
add_filter(
'wfea_event_classes',
function ( $classes ) {
return str_replace( 'free', 'wfea__free', $classes );
},
10,
1
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment