WordPress at Your Fingertips
function is not described

WC_Session::__unset() public WC 1.0

Magic unset method.

{} It's a method of the class: WC_Session{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Session = new WC_Session();
$WC_Session->__unset( $key );
$key(mixed) (required)
Key to unset.

Code of WC_Session::__unset() WC 5.5.2

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