Telemetry::filter_tec_telemetry_slugs( TECEventsTelemetryarray $slugs )

Adds The Events Calendar to the list of plugins to be opted in/out alongside tribe-common.

See also


Top ↑

Parameters

$slugs

(<span class="TECEventsTelemetryarray">TECEventsTelemetryarray) (Required) The default array of slugs in the format [ 'plugin_slug' => 'plugin_path' ]


Top ↑

Return

(TECEventsTelemetryarray<string,string>) $slugs The same array with The Events Calendar added to it.


Top ↑

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 );
	}

Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.