WC_Data::__wakeup
Re-run the constructor with the object ID.
If the object no longer exists, remove the ID.
Метод класса: WC_Data{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Data = new WC_Data(); $WC_Data->__wakeup();
Код WC_Data::__wakeup() WC Data:: wakeup WC 10.4.2
public function __wakeup() {
try {
$this->__construct( absint( $this->id ) );
} catch ( Exception $e ) {
$this->set_id( 0 );
$this->set_object_read( true );
}
}