marscj
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
this attendee’s ticket is not authorized to be checkd in
add_filter( ‘script_loader_tag’, ‘tec_fix_filter_modify_to_module’, 10, 2 );
function tec_fix_filter_modify_to_module( $tag, $handle ) {
if (
‘tec-ky-module’ !== $handle
&& ‘tec-ky’ !== $handle
&& ‘tec-tickets-commerce-gateway-stripe-checkout’ !== $handle
) {
return $tag;
}// These themes already have the
type='text/javascript'added by WordPress core.
if ( ! current_theme_supports( ‘html5’, ‘script’ ) ) {
$replacement = ‘type=”module”‘;return str_replace( “type=’text/javascript'”, $replacement, $tag );
}$replacement = ‘<script type=”module” ‘;
return str_replace( ‘<script ‘, $replacement, $tag );
}
this is workedit’s worked, thanks, bro
Viewing 4 replies - 1 through 4 (of 4 total)