Integrations::plugin_active()

Pass plugin path, i.e., uncanny-automator/uncanny-automator.php to check if plugin is active. By default it returns true for an integration.

Contents


Return Return

(mixed|bool)


Source Source

File: src/core/lib/recipe-parts/trait-integrations.php

	public function plugin_active( $plugin = '', $fake_argument = null ) {
		$plugin = apply_filters( 'automator_modify_plugin_path', $plugin );
		include_once ABSPATH . 'wp-admin/includes/plugin.php';

		return ! empty( $this->get_plugin_file_path() ) ? is_plugin_active( $this->get_plugin_file_path() ) : $plugin;
	}