Telemetry::get_tec_telemetry_slugs()

Allows out plugins to hook in and add themselves, automating a lot of the registration and opt in/out process.


Return

(TECCommonTelemetryarray<string,string>) An array of plugins in the format ['plugin_slug' => 'plugin_path']


Top ↑

Source

File: src/Common/Telemetry/Telemetry.php

	public static function get_tec_telemetry_slugs() {
		/**
		 * Filter for plugins to hooked into Telemetry and add themselves.
		 * This acts a Telemetry "registry" for all TEC plugins.
		 * Used to ensure TEC plugins get (de)activated as a group.
		 *
		 * @since 5.1.0
		 *
		 * @param array<string,string> $slugs An array of plugins in the format [ 'plugin_slug' => 'plugin_path' ]
		 */
		return apply_filters( 'tec_telemetry_slugs', [] );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.0 Introduced.