“woocommerce_order_status_” used to define a callback for any order status changed. It works once we changed the order status So here we need to specify the action. Usually used once we declare a ...Read More
“woocommerce_order_action_” used to define a callback for any order action occurred. It works once we changed the order action So here we need to specify the action. Usually used once we declare a...Read More
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...Read More
This hook, used to add a new order action in Order list of woocommerce. Using this hook we can add a new action in “Order Action” in Orders . add_action( ‘woocommerce_order_actions’, ...Read More
This hook, works for each product in cart. Its arguments are, name, cart item details and a item key. add_filter(‘woocommerce_cart_item_name’,’cart_single_item’); function cart_single_...Read More
This hook, works when a cart is updated. If you want to recalculate anything in each cart updation(quantity change, product adding, deleting) use this filter add_action( ‘woocommerce_thankyou...Read More
This hook, works when a user complete the order. add_action( ‘woocommerce_thankyou’, ‘complte_order’ ); function complte_order($order_id){ } Use this hook, if you want to chang...Read More
This hook, works when total calculate. add_action(‘woocommerce_calculate_totals’,’calculate_totals’); function calculate_totals($totals){ global $woocommerce; } Use this hook, ...Read More
If order status updated to ‘cancelled’ execute ‘failed_status_ cancel’ add_action(‘woocommerce_order_status_cancelled’, ‘failed_status_cancel’); ...Read More
If order status updated to refunded execute ‘failed_status_ refund’ add_action(‘woocommerce_order_status_refunded’, ‘failed_status_refund’); ...Read More