Skip to content

Instantly share code, notes, and snippets.

@rafsuntaskin
Last active September 3, 2021 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafsuntaskin/94c0463f2390ee0a106a14c304c3e7bc to your computer and use it in GitHub Desktop.
Save rafsuntaskin/94c0463f2390ee0a106a14c304c3e7bc to your computer and use it in GitHub Desktop.
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