Cache Time | Display Eventbrite Events
add_filter( ‘wfea_eventbrite_cache_expiry’, function ( $seconds ) { return 3 * HOUR_IN_SECONDS; }, 10, 1 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘wfea_eventbrite_cache_expiry’, function ( $seconds ) { return 3 * HOUR_IN_SECONDS; }, 10, 1 );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_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
function my_plugin_kses( $html ) { $kses_defaults = wp_kses_allowed_html( ‘post’ ); $svg_args = array( ‘svg’ => array( ‘class’ => true, ‘aria-hidden’ => true, ‘aria-labelledby’ => true, ‘role’ => true, ‘xmlns’ => true, ‘fill’ => true, ‘width’ => true, ‘height’ => true,…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
/** * Set the valid range for the calendar view. */ add_filter( ‘wfea_cal_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
#global-preloader { position: fixed; z-index: 99999999999; height: 100vh; width: 100vw; background-color: #ffffff; overflow: hidden; }Continue reading
;(function ($) { $(document).on(‘ready’, function(){ if($(‘#global-preloader’)) return $(‘#global-preloader’).fadeOut(500); }); })(jQuery);Continue reading