Home / Admin / Extra WordPress Filters in Pro (Do something with the age restriction display) | Display Eventbrite Events
Duplicate Snippet

Embed Snippet on Your Site

Extra WordPress Filters in Pro (Do something with the age restriction display) | Display Eventbrite Events

Using this filter you can change the age restriction display. e.g. all_ages by default displays nothing, if you want some text you can use this filter.

filter: (‘wfea_age_restriction‘ , $output, $age)

(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_age_restriction', function ( $output, $age) {
       // do your stuff  change $output 
       if ( 'all_ages' === $age ) {
           $output = 'No Age Restriction';
       }
       return $output;
}, 10, 2 );

Comments

Add a Comment