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