WordPress at Your Fingertips
function is not described

WooCommerce::activated_plugin() public WC 3.6.0

Ran when any plugin is activated.

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

No Hooks.

Return

null. Nothing.

Usage

$WooCommerce = new WooCommerce();
$WooCommerce->activated_plugin( $filename );
$filename(string) (required)
The filename of the activated plugin.

Changelog

Since 3.6.0 Introduced.

Code of WooCommerce::activated_plugin() WC 5.7.1

public function activated_plugin( $filename ) {
	include_once dirname( __FILE__ ) . '/admin/helper/class-wc-helper.php';

	if ( '/woocommerce.php' === substr( $filename, -16 ) ) {
		set_transient( 'woocommerce_activated_plugin', $filename );
	}

	WC_Helper::activated_plugin( $filename );
}