WordPress at Your Fingertips
function is not described

WC_Extensions_Tracking::track_extensions_page() public WC 1.0

Send a Tracks event when an Extensions page is viewed.

{} 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_extensions_page();

Code of WC_Extensions_Tracking::track_extensions_page() WC 5.8.0

public function track_extensions_page() {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	$properties = array(
		'section' => empty( $_REQUEST['section'] ) ? '_featured' : wc_clean( wp_unslash( $_REQUEST['section'] ) ),
	);

	$event      = 'extensions_view';
	if ( 'helper' === $properties['section'] ) {
		$event = 'subscriptions_view';
	}

	if ( ! empty( $_REQUEST['search'] ) ) {
		$event                     = 'extensions_view_search';
		$properties['search_term'] = wc_clean( wp_unslash( $_REQUEST['search'] ) );
	}
	// phpcs:enable

	WC_Tracks::record_event( $event, $properties );
}