woocommerce_fulfillment_deleted_notification action-hookWC 10.1.0

Trigger the fulfillment deleted notification.

Usage

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
-

Changelog

Since 10.1.0 Introduced.

Where the hook is called

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

Where the hook is used in WooCommerce

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