woocommerce_fulfillment_deleted_notification │ хук-событие │ WC 10.1.0

Trigger the fulfillment deleted notification.

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

add_action( 'woocommerce_fulfillment_deleted_notification', 'wp_kama_woocommerce_fulfillment_deleted_notification_action', 10, 3 );

/**
 * Function for `woocommerce_fulfillment_deleted_notification` action-hook.
 * 
 * @param  $order_id     
 * @param  $fulfillment  
 * @param  $wc_get_order 
 *
 * @return void
 */
function wp_kama_woocommerce_fulfillment_deleted_notification_action( $order_id, $fulfillment, $wc_get_order ){
	// action...
}
$order_id
-
$fulfillment
-
$wc_get_order
-

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

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

Где вызывается хук

OrderFulfillmentsRestController::delete_fulfillment()
woocommerce_fulfillment_deleted_notification
woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php 573
do_action( 'woocommerce_fulfillment_deleted_notification', $order_id, $fulfillment, wc_get_order( $order_id ) );

Где используется хук в WooCommerce

woocommerce/includes/emails/class-wc-email-customer-fulfillment-deleted.php 50
add_action( 'woocommerce_fulfillment_deleted_notification', array( $this, 'trigger' ), 10, 3 );