Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
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;
	}