add_filter( ‘simpay_get_paymentintent_args_from_payment_form_request’, function( $args ) { $args[‘metadata’] = array_map( function( $value ) { // If the value is `on` or `off`, change it. Otherwise return the normal value. if ( ‘off’ === $value ) { return ‘No’; } else if…Continue reading
add_filter( ‘wfea_price_display’, function ( $price_display, $min, $max, $currency ) { $event_id= get_post()->ID; if ( $event_id == 1234 ) { $min = $min – 10; $max = $max – 10; } if ( $min == $max ) { $price_display = $min;…Continue reading
add_filter( ‘wfea_price_display’, function ( $price_display, $min, $max, $currency ) { return $price_display . ‘ (Discounts available at checkout)’; }, 10, 4 );Continue reading
add_filter( ‘wfea_strip_eb_inline_styles’, ‘__return_false’ );Continue reading
add_filter(‘wfea_currency_symbols’, function ($currency_symbols) { $currency_symbols[‘CAD’] = ‘CAD$’; return $currency_symbols; } );Continue reading
add_filter( ‘wfea_age_restriction’, function ( $output, $age ) { if ( ‘all_ages’ === $age ) { $output = ‘All ages’; } return $output; }, 10, // filter priority 2 // number of args to filter );Continue reading
add_filter( ‘the_title’, function ( $title) { $post = get_post(); if ( ! property_exists( $post, ‘eb_url’ ) ) { return $title; } return ‘‘ . esc_attr( $post->organizer->name ) . ‘: ‘ . $title; }, 999, 1 );Continue reading
add_filter( ‘wfea_api_results’, function ( $events ) { // remove a specific organiser id $organiser_id = 123456789; $events = array_filter( $events, function ( $event ) use ( $organiser_id ) { return $event->organizer->id != $organiser_id; } ); return $events; }, 1000, 1…Continue reading
add_filter( ‘wfea_layout_slider_slide_speed’, function ( $speed ) { return 5000; // 5 seconds }, 10, 1 );Continue reading
add_filter(‘wfea_cal_locale’,’my_locale_func’); function my_locale_func($locale) { return ‘zh-tw’; }Continue reading