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.


Top ↑

Source

File: wp-includes/class-wp-user-query.php

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

Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.