woocommerce_fulfillment_updated_notification action-hookWC 10.1.0

Trigger the fulfillment updated notification on updating a fulfillment.

Usage

add_action( 'woocommerce_fulfillment_updated_notification', 'wp_kama_woocommerce_fulfillment_updated_notification_action', 10, 3 );

/**
 * Function for `woocommerce_fulfillment_updated_notification` action-hook.
 * 
 * @param  $order_id     
 * @param  $fulfillment  
 * @param  $wc_get_order 
 *
 * @return void
 */
function wp_kama_woocommerce_fulfillment_updated_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::update_fulfillment()
woocommerce_fulfillment_updated_notification
woocommerce/src/Internal/Fulfillments/OrderFulfillmentsRestController.php 375
do_action( 'woocommerce_fulfillment_updated_notification', $order_id, $fulfillment, wc_get_order( $order_id ) );

Where the hook is used in WooCommerce

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