Automattic\WooCommerce\Admin\Features\Fulfillments

FulfillmentsTracker::track_fulfillment_modal_openedpublic staticWC 10.7.0

Track when a merchant opens the fulfillment editor modal/sidebar.

Tracked from: Frontend (JS recordEvent). Measures: Feature discoverability and adoption.

Method of the class: FulfillmentsTracker{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = FulfillmentsTracker::track_fulfillment_modal_opened( $source, $order_id ): void;
$source(string) (required)
Where the modal was opened from ("orders_list" or "order_detail_page").
$order_id(int) (required)
The ID of the order being viewed.

Changelog

Since 10.7.0 Introduced.

FulfillmentsTracker::track_fulfillment_modal_opened() code WC 10.7.0

public static function track_fulfillment_modal_opened( string $source, int $order_id ): void {
	WC_Tracks::record_event(
		'fulfillment_modal_opened',
		array(
			'source'   => $source,
			'order_id' => $order_id,
		)
	);
}