WP_Block_Type_Registry::__wakeup()publicWP 1.0

Method of the class: WP_Block_Type_Registry{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Block_Type_Registry = new WP_Block_Type_Registry();
$WP_Block_Type_Registry->__wakeup();

WP_Block_Type_Registry::__wakeup() code WP 6.5.4

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