WP_User_Query::get( string $query_var ): mixed

In this article

Retrieves query variable.

Parameters

$query_varstringrequired
Query variable key.

Return

mixed

Source

public function get( $query_var ) {
	if ( isset( $this->query_vars[ $query_var ] ) ) {
		return $this->query_vars[ $query_var ];
	}

	return null;
}

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.