Troubleshooting::is_active_issue( string $slug )
Checks if any of the issues defined are active.
Contents
Parameters
- $slug
-
(string) (Required) the slug of active issue.
Return
(boolean) returns a boolean value for each individual issue depending on whether it is active or not.
Source
File: src/Tribe/Admin/Troubleshooting.php
public function is_active_issue( $slug ) { if ( 'timezone' === $slug ) { return Timezones::is_utc_offset( Timezones::wp_timezone_string() ); } if ( 'geolocation' === $slug && class_exists( 'Tribe__Events__Google__Maps_API_Key' ) ) { $key = \tribe_get_option( 'google_maps_js_api_key', false ); return empty( $key ) || Tribe__Events__Google__Maps_API_Key::$default_api_key === $key ; } if ( 'out-of-date' === $slug ) { return $this->is_any_tec_plugin_out_of_date(); } return false; }
Changelog
Version | Description |
---|---|
4.14.2 | Introduced. |