Automattic\WooCommerce\Admin\Features\Fulfillments

FulfillmentsTracker::track_fulfillment_filter_usedpublic staticWC 10.7.0

Track when the orders list is filtered using a fulfillment-related filter.

Tracked from: FulfillmentsRenderer::filter_orders_list_table_query(). Measures: Whether merchants use fulfillment filters and which values they filter by most.

Method of the class: FulfillmentsTracker{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = FulfillmentsTracker::track_fulfillment_filter_used( $filter_by, $filter_value ): void;
$filter_by(string) (required)
The filter field ("fulfillment_status" or "shipping_provider").
$filter_value(string) (required)
The specific value selected (e.g., "partially_fulfilled", "usps").

Changelog

Since 10.7.0 Introduced.

FulfillmentsTracker::track_fulfillment_filter_used() code WC 10.7.0

public static function track_fulfillment_filter_used( string $filter_by, string $filter_value ): void {
	WC_Tracks::record_event(
		'fulfillment_filter_used',
		array(
			'filter_by'    => $filter_by,
			'filter_value' => $filter_value,
		)
	);
}