Event_Status_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/Tribe/Event_Status/Event_Status_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 5.10.0 * * @param bool $activate Defaults to `true`. */ return (bool) apply_filters( 'tec_event_status_enabled', true ); }
Changelog
Version | Description |
---|---|
5.10.0 | Introduced. |