LLMS_Abstract_Session_Data::__unset( string $key )
Magic unset
Parameters Parameters
- $key
-
(string) (Required) The key of the session variable.
Return Return
(void)
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; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Use sanitize_key() when removing session var. |
1.0.0 | Introduced. |