Add new user : make the fields First Name and Last name required
If you were looking to make the fields required in the WordPress admin form for adding new user as i understood from your question, where the output is not filterable, you could basically do what you described (adding form-required) on browser side function se372358_add_required_to_first_name_last_name(string $type) { if ( ‘add-new-user’ === $type ) { ?> <script … Read more