Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hivepress
Last active April 27, 2022 10:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hivepress/6ea037e6a82e145e795031157a2e4306 to your computer and use it in GitHub Desktop.
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
<?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