WP_Network::__isset()publicWP 4.6.0

Isset-er.

Allows current multisite naming conventions when checking for properties.

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

Хуков нет.

Возвращает

true|false. Whether the property is set.

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

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

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

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

Код WP_Network::__isset() WP 6.5.2

public function __isset( $key ) {
	switch ( $key ) {
		case 'id':
		case 'blog_id':
		case 'site_id':
			return true;
	}

	return false;
}