wc_order_statuses
- by admin
- 0
This hook, used to add a new order status in Order list of woocommerce. Using this hook we can add a new action in “Order Satus” in Orders .
add_action(‘wc_order_statuses’, ‘custom_order_status’ );
fnction custom_order_action($order_statuses)
{
$order_statuses[“wc-shipped”]=”shipped”;
return $order_statuses;
}
This hook, used to add a new order status in Order list of woocommerce. Using this hook we can add a new action in “Order Satus” in Orders . add_action(‘wc_order_statuses’, ‘custom_order_status’ ); fnction custom_order_action($order_statuses) { $order_statuses[“wc-shipped”]=”shipped”; return $order_statuses; }
This hook, used to add a new order status in Order list of woocommerce. Using this hook we can add a new action in “Order Satus” in Orders . add_action(‘wc_order_statuses’, ‘custom_order_status’ ); fnction custom_order_action($order_statuses) { $order_statuses[“wc-shipped”]=”shipped”; return $order_statuses; }