Zapier_Provider::is_active()
Returns whether the event status should register, thus activate, or not.
Return
(bool) Whether the event status should register or not.
Source
File: src/Common/Event_Automator/Zapier/Zapier_Provider.php
public static function is_active() {
if ( defined( self::DISABLED ) && constant( self::DISABLED ) ) {
// The disable constant is defined and it's truthy.
return false;
}
if ( getenv( self::DISABLED ) ) {
// The disable env var is defined and it's truthy.
return false;
}
/**
* Allows filtering whether the event status should be activated or not.
*
* Note: this filter will only apply if the disable constant or env var
* are not set or are set to falsy values.
*
* @since 1.0.0
*
* @param bool $activate Defaults to `true`.
*/
return (bool) apply_filters( 'tec_event_automator_zapier_enabled', true );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |