LLMS_Abstract_Session_Database_Handler::delete( string $id )
Delete a session from the database
Parameters Parameters
- $id
-
(string) (Required) Session key.
Return Return
(boolean)
Source Source
File: includes/abstracts/llms-abstract-session-database-handler.php
public function delete( $id ) { wp_cache_delete( $this->get_cache_key( $id ), $this->cache_group ); global $wpdb; return (bool) $wpdb->delete( // phpcs:ignore: WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->prefix . 'lifterlms_sessions', array( 'session_key' => $id, ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |