Fr_Tokens::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) status of plugin.

$plugin

(string) (Required) plugin code.


Top ↑

Return Return

(bool)


Source Source

File: src/integrations/forminator/tokens/fr-tokens.php

	public function plugin_active( $status, $plugin ) {

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

		return $status;
	}