Automattic\WooCommerce\Admin\Features\Fulfillments
FulfillmentsTracker::track_fulfillment_notification_sent
Track when a fulfillment notification email is successfully queued to a customer.
Tracked from: OrderFulfillmentsRestController (create, update, and delete flows). Measures: Whether the communication loop is being closed; how often merchants notify customers.
Метод класса: FulfillmentsTracker{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = FulfillmentsTracker::track_fulfillment_notification_sent( $trigger_action, $fulfillment_id, $order_id ): void;
- $trigger_action(строка) (обязательный)
- The action that triggered the notification ("fulfillment_created", "fulfillment_updated", or "fulfillment_deleted").
- $fulfillment_id(int) (обязательный)
- The ID of the fulfillment.
- $order_id(int) (обязательный)
- The ID of the associated order.
Список изменений
| С версии 10.7.0 | Введена. |
Код FulfillmentsTracker::track_fulfillment_notification_sent() FulfillmentsTracker::track fulfillment notification sent WC 11.2.2
public static function track_fulfillment_notification_sent( string $trigger_action, int $fulfillment_id, int $order_id ): void {
WC_Tracks::record_event(
'fulfillment_notification_sent',
array(
'trigger_action' => $trigger_action,
'fulfillment_id' => $fulfillment_id,
'order_id' => $order_id,
)
);
}