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

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


Parameters Parameters

$status

(bool) (Required) Plugin's active status.

$plugin

(string) (Required) Plugin's code.


Top ↑

Return Return

(bool)


Source Source

File: src/integrations/popup-maker/add-popup-maker-integration.php

	public function plugin_active( $status, $plugin ) {

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

		return $status;
	}