Automattic\WooCommerce\Admin\API

Plugins::active_plugins()public staticWC 1.0

Returns a list of active plugins in API format.

Method of the class: Plugins{}

No Hooks.

Return

Array. Active plugins

Usage

$result = Plugins::active_plugins();

Plugins::active_plugins() code WC 7.3.0

public static function active_plugins() {
	return( array(
		'plugins' => array_values( PluginsHelper::get_active_plugin_slugs() ),
	) );
}