WP_Block_Type::__isset()publicWP 6.1.0

Proxies checking for deprecated properties for script and style handles for backward compatibility. Checks whether the corresponding new property has the first item in the array provided.

Method of the class: WP_Block_Type{}

No Hooks.


true|false. Returns true when for the new property the first item in the array exists, or false otherwise.


$WP_Block_Type = new WP_Block_Type();
$WP_Block_Type->__isset( $name );
$name(string) (required)
Deprecated property name.


Since 6.1.0 Introduced.

WP_Block_Type::__isset() code WP 6.4.3

public function __isset( $name ) {
	if ( ! in_array( $name, $this->deprecated_properties, true ) ) {
		return false;

	$new_name = $name . '_handles';
	return isset( $this->{$new_name}[0] );