WC_Session::__unset
Magic unset method.
Метод класса: WC_Session{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Session = new WC_Session(); $WC_Session->__unset( $key );
- $key(строка) (обязательный)
- Key to unset.
Код WC_Session::__unset() WC Session:: unset WC 10.7.0
public function __unset( $key ) {
$key = sanitize_key( $key );
if ( isset( $this->_data[ $key ] ) ) {
unset( $this->_data[ $key ] );
$this->_dirty = true;
}
}