Automattic\WooCommerce\Admin\Features\Fulfillments
FulfillmentsTracker::track_fulfillment_bulk_action_used
Track when a merchant applies a fulfillment-related bulk action from the orders list.
Tracked from: FulfillmentsRenderer::handle_fulfillment_bulk_actions(). Measures: Whether merchants use the time-saving bulk-fulfill feature.
Method of the class: FulfillmentsTracker{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = FulfillmentsTracker::track_fulfillment_bulk_action_used( $action, $order_count ): void;
- $action(string) (required)
- The action performed ("fulfill_orders" or "unfulfill_orders").
- $order_count(int) (required)
- The number of orders selected for the bulk action.
Changelog
| Since 10.7.0 | Introduced. |
FulfillmentsTracker::track_fulfillment_bulk_action_used() FulfillmentsTracker::track fulfillment bulk action used code WC 10.7.0
public static function track_fulfillment_bulk_action_used( string $action, int $order_count ): void {
WC_Tracks::record_event(
'fulfillment_bulk_action_used',
array(
'action' => $action,
'order_count' => $order_count,
)
);
}