W3cubDocs

/WordPress

WP_User_Query::get_total()

Return 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;
	}

Changelog

Version Description
3.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user_query/get_total