LLMS_Abstract_Session_Data::__unset( string $key )

Magic unset


Parameters Parameters

$key

(string) (Required) The key of the session variable.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/llms-abstract-session-data.php

	public function __unset( $key ) {
		if ( isset( $this->$key ) ) {
			unset( $this->data[ sanitize_key( $key ) ] );
			$this->is_clean = false;
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Use sanitize_key() when removing session var.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.