WP_Block_Type_Registry::__wakeup
Method of the class: WP_Block_Type_Registry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Block_Type_Registry = new WP_Block_Type_Registry(); $WP_Block_Type_Registry->__wakeup();
WP_Block_Type_Registry::__wakeup() WP Block Type Registry:: wakeup code WP 7.0
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();
}
}
}