Transform user name before displaying

Hard to say without seeing any code as to how you are building it out but one suggestion would be to update the field on submit prior to running your register_new_user function. PHP strtolower() Function can be used when passing the data to your custom field Javascript/jQuery you can use .toLowerCase() on the field

Is there a way that we can change wordpress user id?

simply change the autoincrement number in your table settings in phpmyadmin to 387100 and it will start and go ahead with 387101, 387102, and so on. As it automatically counts +1 when adding a user, this is the most efficiant and easy way to do it without changing any code.

wp_user_meta doesn’t return data in a foreach loop

Use this code instead- $args = array( ‘meta_key’ => ‘last_name’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’ ); $users = get_users( $args ); foreach ( $users as $user ) { $user_id = $user->ID; $post_count = count_user_posts( $user_id ); if ( $post_count > 0 ) { $user_meta = get_user_meta( $user_id, ”, true ); echo ‘ID: ‘ . … Read more

Group users by meta field, with name of meta field as group title

i need to return/echo the name of the department/location for each group of employees That is actually a generic PHP/programming question, nonetheless, if you mean an output which looks like so: Location/Department Name – Employee/user – Employee/user – Employee/user Location/Department Name – Employee/user – Employee/user Then here’s one way of accomplishing that: Add this above/before … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)