WP_Block_Type::__isset( string $name ): boolean

Proxies checking for deprecated properties for script and style handles for backward compatibility.


Description

Checks whether the corresponding new property has the first item in the array provided.


Top ↑

Parameters

$name string Required
Deprecated property name.

Top ↑

Return

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


Top ↑

Source

File: wp-includes/class-wp-block-type.php. View all references

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

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

Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.