Add_Cf7_Integration::plugin_active( $status,  $code )

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


Parameters Parameters

$status

(Required)

$code

(Required)


Top ↑

Return Return

(bool)


Source Source

File: src/integrations/contact-form7/add-cf7-integration.php

	public function plugin_active( $status, $code ) {

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

		return $status;
	}