Making fields required

hello ,

is there a way to make a row for phone number.
or a way to force guys with rental properties to enter the next things.

ID number , phone number, full name , etc?

i see so much of the rows as optional i dont want that to be optional.

Hi,

Yes, for built-in fields it’s possible with code snippets like this one Make first and last name fields required for users #hivepress #users · GitHub

For custom fields, e.g. Phone, you can add a custom attribute in Vendors/Attributes and mark it as Editable and Required.

Ill check it tomorrow thanks alot, is there also a database for all those required fields? Like email verification, id etc?

There’s no reference, but you can output all the user fields if the user object is available this way:

var_dump($user->_get_fields());

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