Conditionally load the tool

Description Description

This tool should only load if the recurring payments site feature constant and the site clone status constant are both NOT set.

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-reset-automatic-payments.php

	protected function should_load() {

		return ! defined( 'LLMS_SITE_FEATURE_RECURRING_PAYMENTS' ) && ! defined( 'LLMS_SITE_IS_CLONE' );


Top ↑

Changelog Changelog

Version Description
4.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.