Automattic\WooCommerce\Admin\Features\Fulfillments

FulfillmentsTracker::track_fulfillment_bulk_action_used │ public static │ WC 10.7.0

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.

Метод класса: FulfillmentsTracker{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

$result = FulfillmentsTracker::track_fulfillment_bulk_action_used( $action, $order_count ): void;
$action(строка) (обязательный)
The action performed ("fulfill_orders" or "unfulfill_orders").
$order_count(int) (обязательный)
The number of orders selected for the bulk action.

Список изменений

С версии 10.7.0 Введена.

Код FulfillmentsTracker::track_fulfillment_bulk_action_used() WC 11.2.2

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,
		)
	);
}