LLMS_Admin_Tool_Recurring_Payment_Rescheduler::should_load()
Conditionally load the tool
Description
This tool should only load if there are orders that can be handled by the tool.
Return
(boolean) Return true to load the tool and false to not load it.
Source
File: includes/admin/tools/class-llms-admin-tool-recurring-payment-rescheduler.php
protected function should_load() {
return count( $this->get_orders() ) > 0;
}
Expand full source code Collapse full source code View on GitHub
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |