Directory

WP_Block_Bindings_Registry::__wakeup() – Method | Developer.WordPress.org

WP_Block_Bindings_Registry::__wakeup()

In this article

Wakeup magic method.

Source

public function __wakeup() {
	if ( ! $this->sources ) {
		return;
	}
	if ( ! is_array( $this->sources ) ) {
		throw new UnexpectedValueException();
	}
	foreach ( $this->sources as $value ) {
		if ( ! $value instanceof WP_Block_Bindings_Source ) {
			throw new UnexpectedValueException();
		}
	}
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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