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.


Top ↑

Return Return

(mixed)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.19 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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