Telemetry::filter_tec_telemetry_slugs( TECEventsTelemetryarray $slugs )
Adds The Events Calendar to the list of plugins to be opted in/out alongside tribe-common.
Contents
See also
Parameters
- $slugs
-
(<span class="TECEventsTelemetryarray">TECEventsTelemetryarray) (Required) The default array of slugs in the format [ 'plugin_slug' => 'plugin_path' ]
Return
(TECEventsTelemetryarray<string,string>) $slugs The same array with The Events Calendar added to it.
Source
File: src/Events/Telemetry/Telemetry.php
public function filter_tec_telemetry_slugs( $slugs ) {
$dir = TEC::instance()->plugin_dir;
$slugs[ static::$plugin_slug ] = $dir . static::$plugin_path;
return array_unique( $slugs, SORT_STRING );
}
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |