WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin

Loader::activated_plugin() public WC 1.0

Run when plugin is activated (can be WooCommerce or WooCommerce Admin).

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

No Hooks.

Return

null. Nothing.

Usage

$result = Loader::activated_plugin( $filename );
$filename(string) (required)
Activated plugin filename.

Code of Loader::activated_plugin() WC 5.8.0

public static function activated_plugin( $filename ) {
	$plugin_domain           = explode( '/', plugin_basename( __FILE__ ) )[0];
	$activated_plugin_domain = explode( '/', $filename )[0];

	// Ensure we're only running only on activation hook that originates from our plugin.
	if ( $plugin_domain === $activated_plugin_domain ) {
		self::generate_translation_strings();
	}
}