Created
October 25, 2018 11:46
-
-
Save yousufansa/f200076a7f063b25630ea68cff304d48 to your computer and use it in GitHub Desktop.
Jobhunt - WooCommerce Account Remove Display Name Field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'jh_child_change_woocommerce_save_account_details_required_fields' ) ) { | |
function jh_child_change_woocommerce_save_account_details_required_fields( $required_fields ) { | |
unset ( $required_fields['account_display_name'] ); | |
return $required_fields; | |
} | |
} | |
add_filter( 'woocommerce_save_account_details_required_fields', 'jh_child_change_woocommerce_save_account_details_required_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment