Noptin_Task::is_usable()

Checks whether ActionScheduler is loaded and is not migrating.


Return Return

(bool)


Top ↑

Source Source

File: includes/class-noptin-task.php

	public function is_usable() {

		// No tasks if ActionScheduler wasn't loaded.
		if ( ! class_exists( 'ActionScheduler_DataController' ) ) {
			return false;
		}

		// No tasks if ActionScheduler has not migrated.
		if ( ! ActionScheduler_DataController::is_migration_complete() ) {
			return false;
		}

		return true;
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.7Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation