AnswerBun.com

Add new user : make the fields First Name and Last name required

WordPress Development Asked by sampaii on August 11, 2020

I’m searching how to make First Name and Last name fields required when we add a new user. Right now only username and Email fields are required.

I found a way by adding class="form-required" for the first and last name fields on the file user-new.php.

But I’m looking for a method with adding code on function.php and not touch to the WordPress Core.

Thanks.

Add your own answers!

Related Questions

Connect external web app to wordpress

1  Asked on December 31, 2021 by user1528706

   

Use Video as Featured Image

1  Asked on December 31, 2021 by tsquez

   

Display an image if odd number of posts in grid

2  Asked on December 31, 2021 by timmyg

     

Show all Tags in each post

3  Asked on December 31, 2021 by hong-nng-hng

   

Inline Styles on all native blocks

0  Asked on December 31, 2021 by user13989254

   

Search within the current page

0  Asked on December 31, 2021 by danb0328

 

Custom field group on page

1  Asked on December 29, 2021 by excel-virgin

 

Permalink conflict with React Router in subfolder

1  Asked on December 29, 2021 by mediaguru

 

Call to undefined function insert_with_markers

2  Asked on December 29, 2021 by t2pe

   

add_action reference a class

7  Asked on December 26, 2021 by matthew-ruddy

 

preserve url parameters from affliliate sites

1  Asked on December 26, 2021 by kan1

   

Modify Database in Multi-Site wp_usermeta table

1  Asked on December 26, 2021 by antonio-reinoso-jaya

       

Why wordpress rewrite my custom URL?

3  Asked on December 26, 2021 by bhoqs

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP