WordPress at Your Fingertips
function is not described

WC_Extensions_Tracking::track_addon_install() public WC 1.0

Send a Tracks event when addon is installed via the Extensions page.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Extensions_Tracking = new WC_Extensions_Tracking();
$WC_Extensions_Tracking->track_addon_install( $addon_id, $section );
$addon_id(string) (required)
Addon slug.
$section(string) (required)
Extensions tab.

Code of WC_Extensions_Tracking::track_addon_install() WC 5.8.0

public function track_addon_install( $addon_id, $section ) {
	$properties = array(
		'context' => 'extensions',
		'section' => $section,
	);

	if ( 'woocommerce-payments' === $addon_id ) {
		WC_Tracks::record_event( 'woocommerce_payments_install', $properties );
	}
}