Last active
April 27, 2022 10:23
-
-
Save hivepress/6ea037e6a82e145e795031157a2e4306 to your computer and use it in GitHub Desktop.
Remove the first and last name fields from the user profile form #hivepress #users
This file contains 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
<?php | |
add_filter( | |
'hivepress/v1/forms/user_update', | |
function( $form ) { | |
unset( $form['fields']['first_name'] ); | |
unset( $form['fields']['last_name'] ); | |
return $form; | |
}, | |
1000 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment