Telemetry::get_stellar_slug()
Get the stellar slug based on the parent plugin.
Source
File: src/Common/Telemetry/Telemetry.php
public static function get_stellar_slug(): string {
$tec_slugs = self::get_tec_telemetry_slugs();
foreach( $tec_slugs as $slug => $path ) {
if ( stripos( self::$plugin_path, $path ) ) {
return $slug;
}
}
return '';
}
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |