This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'tribe_events_tickets_attendees_table_column', 'tec_et_csv_override_checkbox_patch', 99, 3 ); | |
function tec_et_csv_override_checkbox_patch( $existing, $item, $column ) { | |
$meta_data = get_post_meta( $item['attendee_id'], Tribe__Tickets_Plus__Meta::META_KEY, true ); | |
/** | |
* Allow plugins to remove support for checkbox field values being displayed or override the text shown. | |
* | |
* @since 4.10.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'tribe_events_archive_get_args', | |
function ( $args, $data, $request ) { | |
// If the API key is present that means the request is coming from App and we should not hide upcoming events. | |
if ( isset( $request['api_key'] ) ) { | |
$args['hide_upcoming'] = false; | |
// Include private events in the response. | |
$args['status'] = [ 'publish', 'private' ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: ET Fatal Test Plugin | |
* Description: Testing ET 5.8.0 fatal with 3rd party integrations | |
*/ | |
defined( 'ABSPATH' ) || exit; | |
add_action( | |
'template_redirect', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'tec_tickets_emails_template_args', function( $args ) { | |
if ( isset( $args['json_ld'] ) ) { | |
unset( $args['json_ld'] ); | |
} | |
return $args; | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ticket_id = 999; | |
$provider = tribe_tickets_get_ticket_provider( $ticket_id ); | |
$attendee_data = [ | |
'title' => 'Generated Attendee 1', | |
'full_name' => 'A test attendee', | |
'email' => '[email protected]', | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tribe_attendees = tribe_attendees('restv1')->where( 'event', $post_id )->where( 'order_status', 'public' )->fields( 'ids' )->all(); | |
?> | |
//Generated SQL | |
SELECT | |
wp_posts.ID | |
FROM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'rt_et_bust_cache_varnish_pantheon' ); | |
function rt_et_bust_cache_varnish_pantheon() { | |
/* | |
* Set or replace $regex_path_patterns accordingly. | |
* | |
* We don't set this variable for you, so you must define it | |
* yourself per your specific use case before the following conditional. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'plugins_loaded', function () { | |
tribe_singleton( TEC\Tickets\Admin\Glance_Items::class, TEC\Tickets\Admin\Glance_Items::class); | |
}, 1 ); | |
add_action( 'admin_init', function() { | |
remove_filter( 'dashboard_glance_items', [ tribe( TEC\Tickets\Admin\Glance_Items::class ), 'custom_glance_items_attendees' ], 10 ); | |
}, 20 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is a workaround to make AR page work with Sage theme JSON errors. | |
* | |
* Under Tickets > Settings > Attendee Registration | |
* -> Set Attendee Registration Slug to 'attendee-registration' | |
* -> Don't choose any page. | |
* -> Now create a Page with the shortcode [tribe_attendee_registration] and use the slug `attendee-registration-info` for that page. | |
* -> Then just copy and paste this code in your theme's functions.php file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'tec_tickets_commerce_gateway_paypal_merchant_locale', function() { | |
return 'en_US'; | |
} ); |
NewerOlder