Session::get( string $key )

Description #

Get an offset by from AnsPress session.

Parameters #

  • $key
    string (Required) Offset key.

Changelog #

VersionDescription
4.1.5Introduced.

Source #

File: includes/class/class-session.php

	public function get( $key ) {
		$cache = get_transient( 'anspress_session_' . $this->id );
		if ( false === $cache ) {
			return;
		}

		if ( isset( $cache[ $key ] ) ) {
			return $cache[ $key ];
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment