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( ‘woocommerce_duplicate_product_exclude_meta’, function( $meta_to_exclude ) { $meta_to_exclude[] = ‘meta_key_to_exclude’; return $meta_to_exclude; } );Continue reading
add_action( ‘init’, function() { if ( ! class_exists( ‘\EDD\Emails\Types\Email’ ) ) { return; } /** * The PreApproved email class. * * This is sent to customers as their ‘preapproved payment confirmation’. */ class EDDWP_PreApproved_Email extends \EDD\Emails\Types\Email { /** *…Continue reading
// Quick and easy way to insert taxonomy terms // We can quickly insert the terms and let WordPress do it under the hood by default however it knows best. // Here is a simple example: // $terms = […Continue reading
// Quick and easy way to insert taxonomy terms // We can quickly insert the terms and let WordPress do it under the hood by default however it knows best. // Here is a simple example: // $terms = […Continue reading
// WP Docs: https://developer.wordpress.org/reference/functions/register_post_type/#parameters // Reference: https://zerowp.com/modify-cpt-arguments-after-it-was-registered/ // Example below: add_action(‘register_post_type_args’, function ($args, $postType) { if ($postType !== ‘book’){ return $args; } $args[‘show_in_rest’] = true; $args[‘public’] = true; return $args; }, 99, 2);Continue reading