Hook to remove additional field?
-
Is there a hook I can use to programmatically remove an additional field using a plugin? I’ve tried the following, but no dice:
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { unset($fields['additional']['sales_person']); return $fields; }
I’d like to be able to add an additional sales person field, but only when the IP address matches our office (so that our staff can see and use the field, but customers cannot).
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hook to remove additional field?’ is closed to new replies.