WordPress at Your Fingertips
function is not described

WC_Session::get() public WC 1.0

Get a session variable.

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

No Hooks.

Return

Array|String. value of session variable

Usage

$WC_Session = new WC_Session();
$WC_Session->get( $key, $default );
$key(string) (required)
Key to get.
$default(mixed)
used if the session variable isn't set.

Code of WC_Session::get() WC 5.5.2

<?php
public function get( $key, $default = null ) {
	$key = sanitize_key( $key );
	return isset( $this->_data[ $key ] ) ? maybe_unserialize( $this->_data[ $key ] ) : $default;
}