WP_User_Query::get_total()publicWP 3.1.0

Returns the total number of users for the current query.

Method of the class: WP_User_Query{}

No Hooks.

Return

Int. Number of total users.

Usage

$WP_User_Query = new WP_User_Query();
$WP_User_Query->get_total();

Changelog

Since 3.1.0 Introduced.

WP_User_Query::get_total() code WP 6.1.1

public function get_total() {
	return $this->total_users;
}