Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. /**
  2. * Executed when the status is changed to failed.
  3. * @param int $order_id
  4. * @param WC_Order $order
  5. */
  6. function wpdg_9291_woocommerce_order_status_failed($order_id, $order) {
  7. // Do something here
  8. }
  9. add_action('woocommerce_order_status_failed', 'wpdg_9291_woocommerce_order_status_failed', 15, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement