LLMS_Admin_Tool_Batch_Eraser::get_pending_batches()
Retrieve the number of pending batches.
Return Return
(int)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.19 | Introduced. |