How to make first name, last name required?


I want to make the First name and Last name required in account setting?. How I can do that? I tried the bellow code but it is not working:

	function( $form ) {
		$form['fields']['first_name']['required'] = true;
		$form['fields']['last_name']['required'] = true;

		return $form;

I have placed the code in Appearance > Customize > Additional CSS.

I am using hivepress and hivetask theme.

1 Like

download the ‘code snippets’ plugin on Wordpress and go to:
You will find your code and much more.
Warning: do not copy <?php from the code, it is already pre-installed in code snippets.


Hello Phil,

It’s working. Thank you!

Best regards,

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