WP_User_Query::get_total() WordPress Method
The get_total() method is a method of the WP_User_Query class. This class is used to query WordPress users. The get_total() method returns the total number of users matching the query.
WP_User_Query::get_total() #
Returns the total number of users for the current query.
Return
(int) Number of total users.
Source
File: wp-includes/class-wp-user-query.php
public function get_total() {
return $this->total_users;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |