LLMS_Admin_Tool_Batch_Eraser::should_load()
Conditionally load the tool
Description Description
This tool should only load if there’s batches in the database.
Return Return
(boolean) Return true to load the tool and false to not load it.
Source Source
File: includes/admin/tools/class-llms-admin-tool-batch-eraser.php
protected function should_load() {
return $this->get_pending_batches() > 0;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.37.19 | Introduced. |