VOOZH about

URL: https://developer.wordpress.org/reference/classes/wp_user_query/__call/

⇱ WP_User_Query::__call() – Method | Developer.WordPress.org


Skip to content

WordPress Developer Resources

WP_User_Query::__call()

HomeReferenceClassesWP_User_QueryWP_User_Query::__call()

WP_User_Query::__call( string $name, array $arguments ): mixed

Makes private/protected methods readable for backward compatibility.

Parameters

$namestringrequired
Method to call.
$argumentsarrayrequired
Arguments to pass when calling.

Return

mixed Return value of the callback, false otherwise.

Source

public function __call( $name, $arguments ) {
	if ( 'get_search_sql' === $name ) {
		return $this->get_search_sql( ...$arguments );
	}
	return false;
}

View all references View on Trac View on GitHub

Related

UsesDescription
WP_User_Query::get_search_sql()wp-includes/class-wp-user-query.php

Used internally to generate an SQL string for searching across multiple columns.

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

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