Code-Snippets-Functions/Execute a function on a child site/Ajax Search for WooCommerce/resolve-click-coupon-toggle-issue-astra.txt

6 lines
172 B
Text

add_filter( 'dgwt/wcas/form/html', function($html) {
if ( is_checkout() || is_cart() ) {
$html = str_replace( " woocommerce ", " ", $html );
}
return $html;
} );