Created
September 6, 2022 18:16
-
-
Save alanef/e8db98a9282de8fb2b5f416e51a9c5cc to your computer and use it in GitHub Desktop.
custom filter change free to wfea__free class
This file contains hidden or 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
| /** | |
| * 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