LLMS_Abstract_Session_Database_Handler::delete( string $id )

Delete a session from the database

Parameters Parameters


(string) (Required) Session key.

Top ↑

Return Return


Top ↑

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',
				'session_key' => $id,


Top ↑

Changelog Changelog

Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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