WP_Block_Bindings_Registry::__wakeup
Wakeup magic method.
Method of the class: WP_Block_Bindings_Registry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Block_Bindings_Registry = new WP_Block_Bindings_Registry(); $WP_Block_Bindings_Registry->__wakeup();
Changelog
| Since 6.5.0 | Introduced. |
WP_Block_Bindings_Registry::__wakeup() WP Block Bindings Registry:: wakeup code WP 6.9.1
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();
}
}
}