Make First Name and Last Name required


On my user account page (client) when editing, the fields First Name and Last Name are optional, what is the hook to make it mandatory?

I would like to add new custom fields to user profile is it possible?
Phone Number, Company, Address

Bernardo Barradas


  1. Please use this PHP snippet (How to add custom code snippets - HivePress Help Center) - Make first and last name fields required for users #hivepress #users · GitHub

  2. If you need to add new fields, please navigate to WP Dashboard > Users > Attributes > Add new.

​I hope this is helpful to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.