Add_Tutorlms_Integration::plugin_active( bool $status, string $plugin )

Conditionally Loads Integration.


Parameters Parameters

$status

(bool) (Required) Is Integration already active?

$plugin

(string) (Required) The integration identifier.


Top ↑

Return Return

(bool)


Source Source

File: src/integrations/tutorlms/add-tutorlms-integration.php

	public function plugin_active( $status, $plugin ) {

		// not our code, bail early.
		if ( self::$integration !== $plugin ) {
			return $status;
		}

		// otherwise, return if Tutor LMS is active.
		return class_exists( '\TUTOR\Tutor' );
	}