Combined Date – Time Format (Sample: am / pm) | Display Eventbrite Events
add_filter( ‘wfea_combined_date_time_time_format’, function ( $format ) { return ‘g:i a’; }, 10, 1 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘wfea_combined_date_time_time_format’, function ( $format ) { return ‘g:i a’; }, 10, 1 );Continue reading
add_filter( ‘wfea_event_url’, function ( $url, $event_id, $organizer, $venue, $category ) { $code = ‘online’; if ( property_exists( $venue, ‘id’ ) ) { switch ( $venue->id ) { case 12345: $code = ‘venue1’; break; case 999893: $code = ‘venue2’; break; default:…Continue reading
add_filter( ‘wfea_eventbrite_cache_expiry’, function ( $seconds ) { return 3 * HOUR_IN_SECONDS; }, 10, 1 );Continue reading
add_filter( ‘wfea_event_url’, function ( $url) { return $url . ‘?aff=affiliate1’; });Continue reading
add_filter( ‘eawp_excerpt’, function($content) { return the_content(); }, 10,1);Continue reading
add_filter( ‘wfea_api_results’, // hook to filter returned event data before display /** * @param $events * @param $atts * * @return mixed * @throws Exception */ function ( $events, $atts ) { if ( ! in_array( $atts[‘layout’], array( ‘cal_list’, ‘cal’…Continue reading
add_filter( ‘wfea_event_classes’, function ( $classes ) { return str_replace( ‘free’, ‘wfea__free’, $classes ); }, 10, 1 );Continue reading
add_filter( ‘wfea_cal_extra_js’, function ( $script, $args ) { $script = ‘ if ( typeof wfea_cal_extra_javascript == \’undefined\’ ) { var wfea_cal_extra_javascript = { eventRender: function (event, element) { let img = \’\’; if (event.imageurl) { img = \’\’; // prepend…Continue reading
add_filter(‘action_scheduler_retention_period’, function() { return 2 * DAY_IN_SECONDS; // two days });Continue reading
/** * Set the valid range for the list view. */ add_filter( ‘wfea_cal_list_options’ , function( $options ) { $options[‘fullcalendar’][‘validRange’] = array( ‘start’ => date( ‘Y-m-d’, strtotime( ‘-5 months’ ) ), // 5 months ago ‘end’ => date( ‘Y-m-d’, strtotime( ‘+5…Continue reading