Yoast\WP\SEO\Surfaces\Values

Meta::__isset()publicYoast 1.0

Magic isset for ensuring properties on the presentation are recognised.

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

Хуков нет.

Возвращает

true|false. Whether or not the requested property exists.

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

$Meta = new Meta();
$Meta->__isset( $name );
$name(строка) (обязательный)
The property to get.

Код Meta::__isset() Yoast 22.4

public function __isset( $name ) {
	if ( \array_key_exists( $name, $this->properties_bin ) ) {
		return true;
	}

	return isset( $this->context->presentation->{$name} );
}