Adding fields to the “Add New User” screen in the dashboard

I’d like to add the field “Company Name” to the add new user page in the admin panel. I’ve done quite a bit of searching and have been unable to find details on how to do this. I can easily add info to the profile page and registration with.. function my_custom_userfields( $contactmethods ) { //Adds … Read more

how to get list of all users and their metadata

How do I get a list of all users with role=”Customers” including all the metadata per user, means wp_users + wp_usermeta. Query blow does not generate the wanted results. $query = “SELECT * FROM wp_users INNER JOIN wp_usermeta ON wp_users.ID = wp_usermeta.user_id ORDER BY ID DESC’); “; $data = $wpdb->get_results($query,ARRAY_A); But that list is not … Read more

How to get a buddypress user profile link and a certain user profile field for the current post author?

I want to replace get_author_link() and get_the_author_meta($feld) with something equivalent to point to the author of the current post Buddypress user profile page and retrieve a specific profile field from his Buddypress page ie, I just want to show a link to the post user profile and a biography from one of his BP profile … Read more

user_login vs. user_nicename

When you call the get_users() functions, a list of user objects are returned. Each of those users has a number of properties. What is the difference between user_login and user_nicename in those returned properties for each user? And which of those two properties are displayed in the URL? (I am asking because both properties are … Read more