woocommerce_fulfillment_created_notification
Trigger the fulfillment created notification on creating a fulfilled fulfillment.
Использование
add_action( 'woocommerce_fulfillment_created_notification', 'wp_kama_woocommerce_fulfillment_created_notification_action', 10, 3 );
/**
* Function for `woocommerce_fulfillment_created_notification` action-hook.
*
* @param $order_id
* @param $fulfillment
* @param $wc_get_order
*
* @return void
*/
function wp_kama_woocommerce_fulfillment_created_notification_action( $order_id, $fulfillment, $wc_get_order ){
// action...
}
- $order_id
- -
- $fulfillment
- -
- $wc_get_order
- -
Список изменений
| С версии 10.1.0 | Введена. |
Где вызывается хук
woocommerce_fulfillment_created_notification
woocommerce_fulfillment_created_notification
woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php 306
do_action( 'woocommerce_fulfillment_created_notification', $order_id, $fulfillment, wc_get_order( $order_id ) );
woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php 444
do_action( 'woocommerce_fulfillment_created_notification', $order_id, $fulfillment, wc_get_order( $order_id ) );
Где используется хук в WooCommerce
woocommerce/includes/emails/class-wc-email-customer-fulfillment-created.php 50
add_action( 'woocommerce_fulfillment_created_notification', array( $this, 'trigger' ), 10, 3 );