Event URL (Additional Data) | Display Eventbrite Events

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

PHP: Modify CPT Arguments (After Initial Registration)

// 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