Field "Location" in Edit Profile as required
Hallo Jomark,
I'd like to mark the field "location" in "Edit Profile" as required.
The source code in the relevant includes/views-users.php:
foreach ( hrb_get_geocomplete_attributes() as $location_att ) {
$meta_key = "hrb_location_{$location_att}";
echo html( 'input', array( 'type' => 'hidden', 'name' => esc_attr( $meta_key
), 'data-geo' => esc_attr( $location_att ), 'value' => esc_attr( get_user_meta( $user->ID, $meta_key, true
) ) ) );
}
How to change this code? Adding
'class' => 'required'
didn't help.
Thank you.