Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 16:05
Show Gist options
  • Select an option

  • Save hivepress/95eee09d50aaf41e574d2c269d477ef0 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

@hivepress

Copy link
Copy Markdown
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

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

Copy link
Copy Markdown

@hivepress

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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