Hackers tried user name with wrong case [closed]

WordPress do not consider user names to be private information. It is trivial to get a user name of any one which has authored a post, and it is not very complex to get a list of active user names based on the errors displayed at the login form when using a wrong password. Regardless … Read more

WordPress Password security related questions

When admin is resetting all users password are the users getting notified about the password reset? I read that with some “Emergency password reset” plugin it is available, but is it a built in feature in WordPress or no. WordPress doesn’t have an option to reset all users passwords, so it would depend on the … Read more

Creating User Profiles using author.php

get_the_author_meta( ‘ID’ ) gets the ID of the author of the current post. If there’s no post there’s no author. Use get_queried_object_id() instead. When used on author archives (i.e. author.php) it will be the ID of the author, regardless of whether or not they have posts.

How can I prevent certain custom roles from seeing other custom roles on the user list page?

Method 1, SQL Notes about your SQL [Unknown column ‘wp_usermeta.meta_key’ in ‘where clause’] This is solved by adding this to the JOIN part of the query: JOIN wp_usermeta ON ( wp_usermeta.user_id = wp_users.ID ) You could check the value of the JOINS and, if false === strpos( ‘wp_usermeta’, $joins ), adding it yourself. When getting … Read more

How to get the count

You should use a total_users property: $query = new WP_User_Query( $args ); $query->total_users; or get_total method: $query = new WP_User_Query( $args ); $query-> get_total(); Docs are your friend: https://codex.wordpress.org/Class_Reference/WP_User_Query