WC_Session::__unset
Magic unset method.
Method of the class: WC_Session{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Session = new WC_Session(); $WC_Session->__unset( $key );
- $key(string) (required)
- Key to unset.
WC_Session::__unset() WC Session:: unset code WC 10.3.6
public function __unset( $key ) {
$key = sanitize_key( $key );
if ( isset( $this->_data[ $key ] ) ) {
unset( $this->_data[ $key ] );
$this->_dirty = true;
}
}