woocommerce_fulfillment_updated_notification
Trigger the fulfillment updated notification on updating a fulfillment.
Usage
add_action( 'woocommerce_fulfillment_updated_notification', 'wp_kama_woocommerce_fulfillment_updated_notification_action', 10, 4 );
/**
* Function for `woocommerce_fulfillment_updated_notification` action-hook.
*
* @param int $order_id The order ID.
* @param Fulfillment $fulfillment The fulfillment object.
* @param \WC_Order|\WC_Order_Refund|false $order The order object.
* @param string $customer_note Optional customer note from the merchant.
*
* @return void
*/
function wp_kama_woocommerce_fulfillment_updated_notification_action( $order_id, $fulfillment, $order, $customer_note ){
// action...
}
- $order_id(int)
- The order ID.
- $fulfillment(Fulfillment)
- The fulfillment object.
- $order(\WC_Order|\WC_Order_Refund|false)
- The order object.
- $customer_note(string)
- Optional customer note from the merchant.
Changelog
| Since 10.1.0 | Introduced. |
| Since 10.8.0 | Added $customer_note parameter. |
Where the hook is called
woocommerce_fulfillment_updated_notification
woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php 458
do_action( 'woocommerce_fulfillment_updated_notification', $order_id, $fulfillment, $order, $customer_note );
Where the hook is used in WooCommerce
woocommerce/includes/emails/class-wc-email-customer-fulfillment-updated.php 57
add_action( 'woocommerce_fulfillment_updated_notification', array( $this, 'trigger' ), 10, 4 );