Try woocommerce_thankyou
hook. This will trigger after recieving order successfully, no matter how user made payment.
$hook_to = 'woocommerce_thankyou';
$what_to_hook = 'wl8OrderPlacedTriggerSomething';
$prioriy = 111;
$num_of_arg = 1;
add_action($hook_to, $what_to_hook, $prioriy, $num_of_arg);
function wl8OrderPlacedTriggerSomething($order_id){
//do something...
}
For more reference dig into woocommerce/templates/checkout/thankyou.php
Related Posts:
- Woocommerce override mini-cart.php not working [closed]
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- User profiles and object associations
- $woocommerce->cart is null inside WordPress Rest API
- Woocommerce custom shared taxonomy
- Sort products without thumbnail in WooCommerce shop page
- Create or Update thousands of woocommerce products via PHP
- Automatically adding category filter based on search string
- Woocommerce sidebar not loading in theme
- Is it possible to set up multistore in Woocommerce? [closed]
- woocommerce_order_status_completed action hook not working [closed]
- How to update billing_email when user_email is updated [closed]
- Serve different files depending on OS/Browser
- How to configure two SMTP Server for wordpress
- Woocommerce plugin for minimum order and add-to-card-step
- Change wordpress current_time function to different timezone
- Change the method of a class from child function.php
- Woocommerce API HTTP Response 401
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- How to use WP-CLI / WC-CLI to bulk import 1000s of products (variable and simple)?
- woocommerce payment gateway callback not firing [closed]
- WordPress Keeps Logging Out – What Tests Can I Run to Solve This?
- How to send an automated email to the customers when product is added woocommerce
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- woocommerce product countdown not showing in variable product? [closed]
- Replacing a plugin function with a custom renamed function doesn’t work
- Multiple Billing forms in WooCommerce (one billing form per product)
- Filtering WooCommerce Orders by Category
- Product queue for my subscription box
- creating a custom shop page display on archive woocommerce
- Hide a Menu Item on Login
- WooCommerce: Force coupon for existing/registered customers [closed]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Problem with add_action
- WooCommerce: after install hook
- Add a “View all” button on WooCommerce product archives pages
- I am trying to make a field show and save from quickedit screen
- Cross Sells are not being shown in Cart Page. Please Help!
- How to display registered customer list as dropdown in WooCommerce checkout?
- how get curent URL slug from archive page [closed]
- Disable variations on woo commerce if out of stock
- How to add category and subcategory in WordPress custom code?
- Customizing $product->get_title() function
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
- Edit all $wp_scripts at once to $in_footer = false
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- How to make WooCommerce payment method field optional?
- WordPress – Ultimate Auction for WooCommerce
- Working on a product group in wordpress, where user choose how many children, wife and husband
- How to add custom plugin data to the cart in woocommerce using custom button on product page?
- Add Plugin broken after removing Booster for Woocommerce
- Display top level parent category as a single product body class (Woocommerce)
- Show prices with tax Inclusive in Minicart widget
- How to add a PW Gift Card to a Woocommerce Order request API?
- How can I send the mail once?
- WPForms Custom Redirect not working
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- Configure upload folder on WoComerce
- WordPress to be used more like an app?
- How can I find related learndash course id from woocommerce product object?
- ACF Fields are not showing up on Homepage
- Make the product page as homepage WooCommerce
- BS Authorize.net Problem (Payment in hanging if customers is not logged in)
- How to create a plugin with automatic update?
- Woocommerce product variation price: How to change price dynamically through hooks
- Getting all woocommerce products from REST API call in plugin
- Problem Advanced Custom Fields PRO
- Securing langugae folder
- my hook or my function wont run in the cronjob
- Add a WooCommerce Product Variant with attributes programmatically
- Use Case: Multiple Shipping Methods per Order
- Get a list of Product Categories inside a loop
- WooCommerce or any other plugin: Deliver JS and CSS through CDN without using a Plugin
- Coupon Codes for product discount combined with conditional free shipping
- Custom product page’s style for printing
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- {status}_{post_type} does not run correctly?
- Woocommerce categories displayed on every category and shopping page
- 504 Timeout gateway when trying to pay for an order in Woocommerce. What else can I do?
- woocommerce product search based only title
- Widget logic using woocommerce product category
- WordPress Theme Conflict With Plugin
- How to Save settings of custom tab product page in admin side in a database?
- Holding 2 wp_user in the same action (to update billing_email when user_email is updated)
- Sort Reviews/Ratings by date on Woocommerce
- How to execute init or woocommerce_init only for checkout page
- How to add plus minus button on Input Quantity box Woocommerce? [closed]
- How to add a text in the checkout page woocomerce?
- Shortcode inside a redirect [closed]
- How can I make a quotation engine like this website in WooCommerce?
- How to show image caption in Woocommerce gallery
- How to add a static image inbetween the product tiles on main shoppage woocommerce?
- wp_options Table keeps growing
- ShipStation WooCommerce Integration error
- Add Text in Single Product Page On a Specific Category
- Can we install 3d product configurator into wordpress
- Change Custom WordPress Function [closed]