Remove required field from "Edit Account"
-
Screen shot here :
https://drive.google.com/file/d/0BzuyLdUA4YO1YkxfcF9SYXVQdDQ/view?usp=sharingHello, professinal users!!
First, Sorry for my bad English.
I have a question about required field from “Edit-Accout”.
This tab is the last one from the “My Account” page.Since the fact that separated name fields are not common thing in here korea,I removed un-wanted form by adding below.(checkout/billing fields)
It worked like charm.
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );
function custom_override_checkout_fields( $fields ) {
unset($fields[‘billing’][‘billing_last_name’]);
return $fields;
}Like my screen shot, there`s still lastname form.
How can I remove this?I read the comment about “function wc_remove_required_last_name( $fields )”
I added it to theme`s function.php, but nothing success.function wc_remove_required_last_name( $fields ) {
unset( $fields[‘account_last_name’] );return $fields;
}add_filter( ‘woocommerce_save_account_details_required_fields’, ‘wc_remove_required_last_name’ );
Someone please help me i don’t know what to do anymore?
- The topic ‘Remove required field from "Edit Account"’ is closed to new replies.