Find out who created a certain user?

Hook into the actions user_register, profile_update and delete_user, and inspect the current user. Use get_current_user_id() to get the acting user and use … WP_User::get_data_by( ‘id’, get_current_user_id() ); … to get more data about the user creating or deleting the other user.

Exclude subscriber users from user list

This new method should work. It looks at all the capability values to find “subscriber”, and hides it. Try this query $wpdb->get_results( “SELECT display_name FROM $wpdb->users WHERE 1=1 AND {$wpdb->users}.ID IN ( SELECT {$wpdb->usermeta}.user_id FROM $wpdb->usermeta WHERE {$wpdb->usermeta}.meta_key = ‘{$wpdb->prefix}capabilities’ AND {$wpdb->usermeta}.meta_value NOT LIKE ‘%subscriber%’) ORDER BY display_name ASC” );

Cannot set user passwords

In the fairly recent past, WordPress changed how the password change works. It looks as though you can’t set your own password; but in fact you still can: Click on “Generate Password,” and then, when the automatically generated gobbledygook password comes up, simply edit that field to type in your desired password.