Skip to content

Commit 944316a

Browse files
Merge pull request #4475 from Codeinwp/bugfix/4474
fix: php deprecated notice
2 parents 06d262c + 90f5a3c commit 944316a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/compatibility/woocommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ private function move_checkout_coupon() {
907907
* Move the coupon field and message info after the order table.
908908
*/
909909
public function move_coupon() {
910-
wc_enqueue_js( '$( $( ".woocommerce-checkout div.woocommerce-info, .checkout_coupon, .woocommerce-form-login" ).detach() ).appendTo( "#neve-checkout-coupon" );' );
910+
wp_add_inline_script( 'neve-script', 'jQuery( jQuery( ".woocommerce-checkout div.woocommerce-info, .checkout_coupon, .woocommerce-form-login" ).detach() ).appendTo( "#neve-checkout-coupon" );' );
911911
}
912912

913913
/**

0 commit comments

Comments
 (0)