Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 25, 2018 11:46
Show Gist options
  • Save yousufansa/f200076a7f063b25630ea68cff304d48 to your computer and use it in GitHub Desktop.
Save yousufansa/f200076a7f063b25630ea68cff304d48 to your computer and use it in GitHub Desktop.
Jobhunt - WooCommerce Account Remove Display Name Field
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