The place-order form button is actually called woocommerce_checkout_place_order, and the code in WC_Form_Handler passes this on to WC_Checkout process_checkout().
Here’s the relevant code. You probably want to hook:
- woocommerce_before_checkout_process or woocommerce_checkout_process, which happen before this code reads the items from posted data itself (although you could call WC()->checkout()->get_posted_data() yourself I think)
- woocommerce_after_checkout_validation, which is passed the posted data as its first argument along with an errors array
- woocommerce_checkout_order_processed if you want the data after the checkout is complete.
Related Posts:
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- How does WooCommerce display a custom comment_type in Comment Admin?
- Custom Shipping method not showing in checkout
- How to prevent action in ajax request, when in admin side?
- Create or Update thousands of woocommerce products via PHP
- Is it possible to set up multistore in Woocommerce? [closed]
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- HTML in WooCommerce settings
- Woocommerce plugin for minimum order and add-to-card-step
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- woocommerce payment gateway callback not firing [closed]
- How to modify WCMP Rest API response?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- New databes tables with – WooCommerce – for developers [closed]
- Change commission_status paid when withdraw_status vendor is completed
- custom payment gateway in woocommerce failed to connect to remote api server
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- how to do login using woocommerce rest api From android
- Woocommerce Minimum Price for a Composite Product to add in cart
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Redirect to another page using contact form 7? [closed]
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Get Every Key & Value from Array then Display All in New Line
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Add a “View all” button on WooCommerce product archives pages
- add seperate suffix for low price and high price in woocommerce
- Cross Sells are not being shown in Cart Page. Please Help!
- Error with get_price (and others) in self-written plugin to show price
- Search users with custom meta data
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Disable variations on woo commerce if out of stock
- How to add category and subcategory in WordPress custom code?
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- How to Get Category Name When Export Products
- wp_query ‘s’ parameter does not work with WC_AJAX
- Grouping imported products and showing variations based on selected product
- Remove Zero Money From Previews Order woocommerce
- Visual composer custom element error
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- How can i solve php upgrade problem
- Make downloadable ebook read online without download option
- woocommerce: Customize email with item total count
- show wc_add notices on particular page in woo commerce custom plugin development
- Woocommerce convert simple products to variations
- How to make WooCommerce multiple filter with custom meta fields
- How to create a plugin with automatic update?
- category page multiple products add to cart any plugin available for woocommerce
- Getting all woocommerce products from REST API call in plugin
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Change Woo Custom Endpoint Titles from a Plugin
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- Use Case: Multiple Shipping Methods per Order
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Get a list of Product Categories inside a loop
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Not displaying Woocommerce product page in lightbox
- Hide ‘add to cart’ button for some products [duplicate]
- Change pricing in Woocommerce based on Category and Product [closed]
- Adding/ Removing actions for plugins
- Problem with conditional woocommerce custom checkout field
- Unable to sync woocommerce variations
- woocommerce blank page after clicking add to cart [closed]
- Unable to show 4 products in a row
- The plugin generated xxx characters of unexpected output during activation
- Hook for single product thumbnail
- Predefine Product Variations for specific custom product type [closed]
- Create Custom Coupon Type
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- Template selector for woocommerce product
- Can we install 3d product configurator into wordpress
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- A multi-section WordPress store [closed]
- How to implement WordPress plugin update that modifies the database?
- How to load a new template page according to a particular URL?
- How to add an attribute to the body tag with a plugin?
- Override the core function locate_template
- Set user ID at time of wp_create_user
- How would I go about creating a user ranked post popularity page?
- Customised plugin failed to install and activate
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- How to get all posts belongs to a user between a certain date
- wp-load.php redeclares classes
- Add item to the woocommerce dashboard menu from a plugin
- Make get_permalink() work outside the Loop using filters
- Pluging with content for a specific page or post
- Does WordPress do any internal caching if no plugin installed?
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- Add WooCommerce vendor slug to auto-generated SKU
- Can we rename a plugin directory for a already launched plugin?
- redirect to a custom page
- Am I correctly adding styles to plugin?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- how to create table during plugin installation in side a class
- Why function hooked using object are executing at all time?
- add_meta_box showing blank screen in my page
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class