Skip to content

Instantly share code, notes, and snippets.

@rafsuntaskin
Last active September 3, 2021 13:13
Embed
What would you like to do?
Fix Woo Payments and ET fatal error
<?php
add_filter( 'tribe_tickets_block_ticket_html_attributes', 'rt_et_woo_payments_fatal_fix' );
function rt_et_woo_payments_fatal_fix( $attrs ) {
if ( ! isset( $attrs['data-ticket-price'] ) ) {
return $attrs;
}
$attrs['data-ticket-price'] = (string) $attrs['data-ticket-price'];
return $attrs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment