Automattic\WooCommerce\Internal\VariationGallery
Telemetry::record_event
Record a Tracks event.
Method of the class: Telemetry{}
No Hooks.
Returns
void. Nothing (null).
Usage
$result = Telemetry::record_event( $event_name, $properties ): void;
- $event_name(string) (required)
- One of the
EVENT_*class constants. - $properties(array<string, mixed>)
- Event properties to attach.
Default:array()
Telemetry::record_event() Telemetry::record event code WC 11.0.1
public static function record_event( string $event_name, array $properties = array() ): void {
if ( ! function_exists( 'wc_admin_record_tracks_event' ) ) {
return;
}
wc_admin_record_tracks_event( $event_name, $properties );
}