Have you considered the WooCommerce action woocommerce_order_status_completed
which is called when the order status is changed to wc-completed
? It is called with the order id and the order object (instance of WC_Order) from which you can get the details of the order.
Related Posts:
- Attach a Custom Post Type to a Woocommerc product as a variation or add-on [closed]
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- How to show link to product in custom fields?
- How to Add Custom Taxonomy To Woocommerce Plugin
- Development of a WordPress Search Plugin – Best Practices
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- Getting arguments for register_post_type from a plugin generated post type
- Query for posts from any post type but only add instock products
- update custom post type meta from a shortcode
- How to localize value of posts
- WooCommerce – Show orders for a specific product ? [closed]
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How to append element after thumbnail
- Want to turn WordPress into a paid subscription directory
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Problem adding column to WC Subscription [closed]
- Custom Post Type | Fatal Error on register_post_type()
- GravityForm: Populate Dropdown with custom post type [closed]
- “add_post_type_support” with Custom Post Type & ACF
- Shortcode insertion in tab
- Add CPT as subpage under custom page
- WooCommerce product search titles only
- custom post type not showing in menu
- Adding a custom post type taxonomy template in plugin
- Get post from custom post type order by two taxonomies
- add category name to permalinks on product page /category-name/product-name
- How can I make a custom post type sticky?
- Broken featured images are uploading from frontend
- Manage custom post type in woocommerce /my-account/ page
- limit value taxonomy based on previous taxonomy value wordpress
- How to change wp prefix for custom post type only?
- Metabox not show in categories custom post type cmb2
- Hide a widget inside a div on specific type of post
- Allow add new post access to custom post but not wp post for some role
- Display Woocommerce Orders for specific author [closed]
- Custom fields for custom post type
- Custom Post Archive is not working
- How to add multiple images to a custom post type without plugin [closed]
- How to create multiple editor?
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Create metaboxes based on custom post type
- How can I have different content for different countries?
- Post URL based on Custom Post Types variables
- custom permalink for post only not custom post types
- CMB2 metabox create select with list of post from CPT
- Modify Posts from Custom_Post_Type within the plugin
- Get all post from a post type
- Create a simple Testimonial page
- CPT as Product in WooCommerce
- Methods for development wordpress themes [closed]
- Overriding Plugin Function in Child Theme
- Custom post types, disable fields
- Change permalink for custom_post_type using custom_post_meta (woocommerce)
- Types plugin custom post add_action hooks
- Get Terms from Custom Taxonomy and Current Post
- Create category for each user
- How to display related posts using the same taxonomy for custom types (WordPress, Pods, Woo)
- How to display custom field in product description?
- What’s the best way to do this: inquiry/ticket system?
- ‘Simple’ Reservation System
- Accessing download link from the loop with WP Download Manager Pro
- Custom Post Type works when registered in functions.php but not when registered in plugin
- edit.php all post not working
- Reading Custom Post data so I can have user update Manually
- Show Post columns to specific users on condition
- Disable ‘Add New’ in custom post that is made from CPT UI
- add action save post type and update post meta woocommerce
- CPT UI: Connect a custom post type to a custom post type
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- How to check if a new private custom post type is created?
- Looping through image object using ACF and CPT UI [SOLVED]
- woocommerce post_type conflict with existing post type
- Create Inclusions and exclusions
- How to create groups like that in buddypress?
- Post that populates itself (almost) automatically using data from imported excel file
- I broke it! Custom post type archive gets redirected to home
- Can’t save custom post type fields
- How to Create movie schedule by custom post type query
- Adding CPT changes entire layout of my site except for the archive of that CPT
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- CPT or Custom Table for Repository of Serial Numbers
- Custom Fields as Post Type Options
- get_post_types doesn’t work in plugin
- Custom Post Type parent slug as menu item
- Customizing a plugin function using a hook
- Custom Info Box at end of posts?
- Custom Search Template for Custom Post Types
- Extending a CPT by Created by another plugin
- How to add post type in masonry posts elementory widget
- Remove plugin’s custom post type archive page and single pages [closed]
- Display Custom Post Type on Toolset Types Plugin
- WooCommerce – Complete Order when an action occurs
- How to manage a bookstore
- How to delete unnecessary custom post types in the UI
- add_filter > posts_where works partially
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Retrieve a post with its ACF repeater fields in wordpress
- Create Custom Coupon Type