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?
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Create a custom archive page for a custom post type in a plugin
- Media library – Limit images to custom post type
- How to Add Custom Taxonomy To Woocommerce Plugin
- Development of a WordPress Search Plugin – Best Practices
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- Change capability type of post type registered by plugin
- Rewriting ‘rewrite’ slug for custom post type used by plugin
- echo value from ‘select’ field type into page template using cmb2?
- register_taxonomy with multiple object type and update_count_callback
- How often do you need to register_post_type?
- Exclude a term of a taxonomy with a custom post type in a search
- post_type_link filter causes 404 on the CPT page it’s used on
- How to use a dedicated template for the Custom Post Type from a plugin?
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- How to auto send email when publishing a custom post type?
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- How to solve suspected memory issue in custom WordPress loop?
- List events by month
- Date query for a custom meta field
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Change plugin’s has_archive = true to false?
- 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 a post meta from a single table cell TablePress
- update custom post type meta from a shortcode
- Remove POST_TYPE from custom post type permalink
- Query posts between two dates (custom meta keys) CMB2
- How to localize value of posts
- Used with meta_query in query_posts works slowly
- WooCommerce – Show orders for a specific product ? [closed]
- Change upload_dir folder at a certain cpt but cant change back
- How to add post_author column to custom post type
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- Set meta_query only for specific post type
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How to append element after thumbnail
- Best practice for adding posts in bulk
- Want to turn WordPress into a paid subscription directory
- Hide Meta Boxes for Non-Admins
- Woocommerce query specific product from specific category
- Issue to get wp_get_attachment_image with cmb2
- How to have the right design for a custom post type without accessing themes
- 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()
- Set object terms not working on plugin activation
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- GravityForm: Populate Dropdown with custom post type [closed]
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- how to add extra meta box or textarea into custom post types
- “add_post_type_support” with Custom Post Type & ACF
- Shortcode insertion in tab
- Can’t get order_by meta_value_num to work properly
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- Create custom post type on successful woocommerce order [closed]
- Add CPT as subpage under custom page
- WooCommerce product search titles only
- check if post title in a custom post type exists in page
- How to hack YARPP plugin to find related posts for custom post type?
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Update menu when saving settings
- How to display product subcategories into my custom post type single page
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- custom post type not showing in menu
- Custom posts don’t work
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- single-{cpt}.php ignored
- If post has custom field then display css-class
- Adding a custom post type taxonomy template in plugin
- Get post from custom post type order by two taxonomies
- Replace text in post from cvs
- Insert and then update post_type by wp_update_post
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- add category name to permalinks on product page /category-name/product-name
- How can I make a custom post type sticky?
- changing meta value and meta key of price field
- Action or Filter Hook for a Custom Importer
- Woocommerce search pagination not working
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- WooCommerce Customer Role Delete Custom Post Type
- Broken featured images are uploading from frontend
- Addition of custom option panel crashes Media Library & Admin Area
- WooCommerce sort products by the actual product width(not the shipping width)
- Manage custom post type in woocommerce /my-account/ page
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- Tracking changes in admin-page so user gets warning when leaving the page
- How to change wp prefix for custom post type only?
- Woocommerce custom field search in custom post type [closed]
- Send notifications to custom post author when custom post is edited
- Metabox not show in categories custom post type cmb2