WP_User_Query::__isset()publicWP 4.0.0

Makes private properties checkable for backward compatibility.

Метод класса: WP_User_Query{}

Хуков нет.

Возвращает

true|false. Whether the property is set.

Использование

$WP_User_Query = new WP_User_Query();
$WP_User_Query->__isset( $name );
$name(строка) (обязательный)
Property to check if set.

Список изменений

С версии 4.0.0 Введена.

Код WP_User_Query::__isset() WP 6.2.2

public function __isset( $name ) {
	if ( in_array( $name, $this->compat_fields, true ) ) {
		return isset( $this->$name );
	}
}