Class Clashes | Display Eventbrite Events
add_filter( ‘wfea_event_classes’, function ( $classes ) { return str_replace( ‘free’, ‘wfea__free’, $classes ); }, 10, 1 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
add_filter( ‘wcv_dashboard_quick_links’, ‘change_add_product_link’ ); /** * Change the add product link * * @param array $links The links. */ function change_add_product_link( $links ) { if ( isset( $links[‘product’] ) ) { $links[‘product’][‘url’] = ‘https://example.com/add-product/’; $links[‘product’][‘label’] = __( ‘Add Product’, ‘wc-vendors’…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
function year_shortcode () { $year = date_i18n (‘Y’); return $year; } add_shortcode (‘year’, ‘year_shortcode’);Continue reading
/** * Enable unfiltered_html capability for role. * * @param array $caps The user’s capabilities. * @param string $cap Capability name. * @param int $user_id The user ID. * @return array $caps The user’s capabilities, with ‘unfiltered_html’ potentially added. */…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 $_wp_additional_image_sizes; print ‘ ‘; print_r($_wp_additional_image_sizes); print ‘ ‘;Continue reading