WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

PluginsHelper::get_active_plugin_slugs() public WC 1.0

Get an array of active plugin slugs.

{} It's a method of the class: PluginsHelper{}

No Hooks.

Return

Array. Nothing.

Usage

$result = PluginsHelper::get_active_plugin_slugs();

Code of PluginsHelper::get_active_plugin_slugs() WC 5.3.0

<?php
public static function get_active_plugin_slugs() {
	return array_map(
		function( $plugin_path ) {
			$path_parts = explode( '/', $plugin_path );
			return $path_parts[0];
		},
		get_option( 'active_plugins', array() )
	);
}