WP_User_Query::get( string $query_var ): mixed

Retrieves query variable.


Parameters

$query_var string Required
Query variable key.

Top ↑

Return

mixed


Top ↑

Source

File: wp-includes/class-wp-user-query.php. View all references

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

	return null;
}


Top ↑

Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes

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