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
Mailchimp_Helpers::is_webhook_enabled()

Checks if webhook is enabled or not.

Contents


Return Return

(boolean) True if webhook is enabled. Otherwise, false.


Source Source

File: src/integrations/mailchimp/helpers/mailchimp-helpers.php

	public function is_webhook_enabled() {
		$webhook_enabled_option = get_option( 'uap_mailchimp_enable_webhook', false );
		// The get_option can return string or boolean sometimes.
		if ( 'on' === $webhook_enabled_option || 1 == $webhook_enabled_option ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
			return true;
		}
		return false;
	}