1. Home
  2. Docs
  3. woocommerce ‘Custom Email’ & ‘문자 알림’
  4. woocommerce 주문 상태 변경 체크

woocommerce 주문 상태 변경 체크

add_action( ‘woocommerce_order_status_pending’, ‘mysite_pending’);
add_action( ‘woocommerce_order_status_failed’, ‘mysite_failed’);
add_action( ‘woocommerce_order_status_on-hold’, ‘mysite_hold’);
add_action( ‘woocommerce_order_status_processing’, ‘mysite_processing’);
add_action( ‘woocommerce_order_status_completed’, ‘mysite_completed’);
add_action( ‘woocommerce_order_status_refunded’, ‘mysite_refunded’);
add_action( ‘woocommerce_order_status_cancelled’, ‘mysite_cancelled’);

woocommerce_order_status_changed  훅 이용해서 상태를 비교하는 방법도 있음