Adding/Deleting a custom user profile field
-
I have added/unset some account and checkout custom fields. How can I modify the woocommerce account fields in the backend user profile page?
I tried:add_filter( ‘woocommerce_customer_meta_fields’ , ‘custom_override_customer_meta_fields’ );
function custom_override_customer_meta_fields( $fields ) {
unset($fields[‘billing’][‘billing_company’]);
unset($fields[‘shipping’][‘shipping_company’]);
unset($fields[‘shipping’][‘shipping_last_name’]);
unset($fields[‘shipping’][‘shipping_address_2’]);
unset($fields[‘shipping’][‘shipping_country’]);
unset($fields[‘shipping’][‘shipping_state’]);return $fields;
}
… with no success :/Any suggestions?
Thanks in advance! ??
- The topic ‘Adding/Deleting a custom user profile field’ is closed to new replies.