Add_Pmp_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/paid-memberships-pro/add-pmp-integration.php

	public function plugin_active( $status, $plugin ) {

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

		return $status;
	}