Advertisement
Gecata1

Untitled

Sep 25th, 2023
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | Fixit | 0 0
  1. add_filter( 'woocommerce_checkout_fields' , 'edscom_trigger_update_checkout_on_change' );
  2.  
  3. function edscom_trigger_update_checkout_on_change( $fields ) {
  4.  
  5.     $fields['billing']['billing_state']['class'][] = 'update_totals_on_change';
  6.  
  7.  
  8.     return $fields;
  9. }
Tags: woocommerce
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement