Add_Mp_Integration::plugin_active( $status,  $plugin )

Only load this integration and its triggers and actions if the related plugin is active


Parameters Parameters

$status

(Required)

$plugin

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/integrations/memberpress/add-mp-integration.php

	public function plugin_active( $status, $plugin ) {

		if ( self::$integration === $plugin ) {
			if ( class_exists( 'MeprCtrlFactory' ) ) {
				$status = true;
			} else {
				$status = false;
			}
		}

		return $status;
	}