Telemetry::filter_tec_telemetry_slugs( TECEvents_ProTelemetryarray $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="TECEvents_ProTelemetryarray">TECEvents_ProTelemetryarray) (Required) The default array of slugs in the format [ 'plugin_slug' => 'plugin_path' ]
Return
(TECEvents_ProTelemetryarray<string,string>) $slugs The same array with The Events Calendar added to it.
Source
File: src/Events_Pro/Telemetry/Telemetry.php
public function filter_tec_telemetry_slugs( $slugs ) {
$dir = trailingslashit( basename( EVENTS_CALENDAR_PRO_DIR ) );
$slugs[self::$plugin_slug] = $dir . self::$plugin_path;
return array_unique( $slugs, SORT_STRING );
}
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |