Conditionally load the tool

Description Description

This tool should only load if there’s batches in the database.

Top ↑

Return Return

(boolean) Return true to load the tool and false to not load it.

Top ↑

Source Source

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

	protected function should_load() {

		return $this->get_pending_batches() > 0;


Top ↑

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.