LLMS_Admin_Tool_Batch_Eraser::get_pending_batches()

Retrieve the number of pending batches.


Return Return

(int)


Top ↑

Source Source

File: includes/admin/tools/class-llms-admin-tool-batch-eraser.php

	protected function get_pending_batches() {

		$count = wp_cache_get( $this->id, 'llms_tool_data' );
		if ( false === $count ) {

			global $wpdb;
			$count = absint( $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->options} WHERE option_name LIKE '%llms_%_batch_%';" ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery

			wp_cache_set( $this->id, $count, 'llms_tool_data' );

		}

		return $count;

	}


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.