Advertisement
iEmanuele

Modifica checkout field

Apr 2nd, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. // Aggiungo/modifico i campi al checkout form di woocommerce: billing form
  2.    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields', 10, 1 );
  3.    function custom_override_checkout_fields( $fields ) {
  4.     $fields['billing']['billing_company']['required'] = true;
  5.     return $fields;
  6.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement