LLMS_Admin_Tool_Batch_Eraser::handle()
Process the tool.
Description Description
This method should do whatever the tool actually does.
By the time this tool is called a nonce and the user’s capabilities have already been checked.
Return Return
(mixed)
Source Source
File: includes/admin/tools/class-llms-admin-tool-batch-eraser.php
protected function handle() { global $wpdb; $res = $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '%llms_%_batch_%';" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching wp_cache_delete( $this->id, 'llms_tool_data' ); return $res > 0; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.19 | Introduced. |