Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 16:05
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/95eee09d50aaf41e574d2c269d477ef0 to your computer and use it in GitHub Desktop.
Save hivepress/95eee09d50aaf41e574d2c269d477ef0 to your computer and use it in GitHub Desktop.
Make first and last name fields required for users #hivepress #users
<?php
add_filter(
'hivepress/v1/forms/user_update',
function( $form ) {
$form['fields']['first_name']['required'] = true;
$form['fields']['last_name']['required'] = true;
return $form;
},
1000
);
@Hamza-Ali-Shah
Copy link

Also Plz Provide The Snippet Code To Optional The Email Field in "Vendor Complete Profile" Page. Not For Edit Vendor Page

@hivepress
Copy link
Author

The Complete Profile form has no Email field by default, maybe you added it as a custom editable attribute in Vendors/Attributes?

@Hamza-Ali-Shah
Copy link

Hamza-Ali-Shah commented Jul 27, 2023 via email

@hivepress
Copy link
Author

It's already optional in the login form, this field also accepts usernames (you can rename its "Username or Email" placeholder to just "Username" if required via Loco Translate). Please try using our support forum https://community.hivepress.io/

@Hamza-Ali-Shah
Copy link

Greetings,
HivePress Theme is showing Blank Space Below The Footer, When a user login or sign up. It Will show blank space below the footer. I need the code to remove the blank space below the footer.
Thanks!

@hivepress
Copy link
Author

Please try using our official support forum https://community.hivepress.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment