WP_Block_Bindings_Registry::__wakeup
Wakeup magic method.
Метод класса: WP_Block_Bindings_Registry{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Block_Bindings_Registry = new WP_Block_Bindings_Registry(); $WP_Block_Bindings_Registry->__wakeup();
Список изменений
| С версии 6.5.0 | Введена. |
Код WP_Block_Bindings_Registry::__wakeup() WP Block Bindings Registry:: wakeup WP 7.1.5
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();
}
}
}