Category: woocommerce
woocommerce_calculate_totals
This hook, works when total calculate. add_action(‘woocommerce_calculate_totals’,’calculate_totals’); function calculate_totals($totals){ global $woocommerce; } Use this hook, ... Read Morewoocommerce_thankyou
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 Morewoocommerce_cart_updated
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 Morewoocommerce_cart_item_name
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 Morewoocommerce_order_actions
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 Morewc_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... Read Morewoocommerce_order_action_ {action}
“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 Morewoocommerce_order_status_{action}
“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 MoreDisplay coupons used in an order in woocommerce
Use any order hooks. here we get the deatils of coupen once cancelled the order from orders list add_action(‘woocommerce_order_status_cancelled’, ‘order_cancelled_woo’); orde... Read More- 5 of 5
- « Previous
- 1
- …
- 3
- 4
- 5