WC_Session::__unset()publicWC 1.0

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() code WC 8.7.0

public function __unset( $key ) {
	if ( isset( $this->_data[ $key ] ) ) {
		unset( $this->_data[ $key ] );
		$this->_dirty = true;
	}
}