WordPress at Your Fingertips
function is not described

WP_User_Query::__set() public WP 4.0.0

Make private properties settable for backward compatibility.

{} It's a method of the class: WP_User_Query{}

No Hooks.


Mixed. Newly-set property.


$WP_User_Query = new WP_User_Query();
$WP_User_Query->__set( $name, $value );
$name(string) (required)
Property to check if set.
$value(mixed) (required)
Property value.

Code of WP_User_Query::__set() WP 5.8.3

public function __set( $name, $value ) {
	if ( in_array( $name, $this->compat_fields, true ) ) {
		return $this->$name = $value;