LLMS_Admin_Tool_Course_Data_Lock_Eraser::should_load()

Conditionally load the tool.


Description Description

This tool should only load if there’s locks 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-course-data-lock-eraser.php

	protected function should_load() {

		return $this->get_locked_courses() > 0;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
9.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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