I managed to figure it out by placing the wp_insert_post function in the same function that saves the order meta data
Related Posts:
- Hide a widget inside a div on specific type of post
- Is it a connection or relationship between 2 custom post types?
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Query menu_order custom post types
- Search that will look in custom field, post title and post content
- Load custom posts with same tag as page
- Date archives for custom post type
- If featured image doesn’t exist, show post content
- How can I add dropdown widget/box to admin post page?
- Meta Query “IN” doesn’t work with ACF checkbox filter
- How do I redirect all 404 errors of a specific post type to another URL?
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to save the checked boxes?
- How to get only one category of custom post type?
- Error after deleting Custom Post Type with a function (no trash used)
- Append taxonomy terms as class names in markup?
- Change message given when deleting post from custom post type
- Using WPAlchemy metabox values in another metabox
- List terms from Custom Taxonomy
- Display custom field of specific post where post title matches variable
- Problem adding column to WC Subscription [closed]
- How to count custom post types with conditional operators
- GravityForm: Populate Dropdown with custom post type [closed]
- How to output wordpress custom tags separated by comma?
- Show Different Header on a Specific Post ID
- Admin notice not displaying
- Using wordpress template tags within an array
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Getting the URL of the parent page
- get_posts of Custom Post Type AND Custom Taxonomy
- Get posts from a custom post type by child categories of a parent category
- If post has custom field then display css-class
- Replace text in post from cvs
- Get parent categories of custom post type
- Custom Tag Description unable to display just below and outside of the Loop
- changing meta value and meta key of price field
- Can one create multiple Custom Post Types with a for loop?
- WooCommerce sort products by the actual product width(not the shipping width)
- Woocommerce custom field search in custom post type [closed]
- How to add custom field to view-edit post type page
- Static apple-app-site-association file with wordpress
- search suggest – filter post type
- Breaking up CPT output into two columns
- Configuring a meta query with multiple post types that have the same relationship on a single page
- how to echo meta tag in header using php
- Trying to get custom post of a custom taxonomy
- PHP question: how to combine syntax?
- Add first letter of titles to array, then compare arrays
- How do I add custom HTML to the content of an archive page’s posts?
- widget_posts_args not using the number of posts in widget
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Undefined $post in wp_query
- Copy order items with metadata between orders – Woocommerce
- Update Post Status On Woocommerce Payment Complete
- Importing JSON feed giving Notice: Array to string conversion error
- List latest post out of 2 custom post types
- CPT as Product in WooCommerce
- Change permalink for custom_post_type using custom_post_meta (woocommerce)
- Sets post_parent in custom post type posts automatically based on cpt->page name
- Show the categories the current post has
- Fetch data from two custom post types and create multidimensional array for output to html table
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- How to display “Trash” in my custom post type?
- How to get the custom post data using post id in WordPress?
- See if the email exists or not
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- Query custom post type that has a serialized relational advanced custom field value
- Pagination not working in custom post type. Help
- How to add specific terms in a custom post type?
- Sending current featured image to email
- Plugin Development using classes – Public & Private Callbacks
- Limit custom post type to the authors only on front-end!
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- programmatically generated custom post type is created more than once
- ‘Simple’ Reservation System
- Accessing download link from the loop with WP Download Manager Pro
- Create posts inside CPT post
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- News post with multiple permalinks? When opened from different page
- Custom Taxonomy – fields
- WordPress trying to query two custom types to get child from the parent
- Print post category name from a custom post type wordpress
- CPT post doesnt shows tags and category on backend admin page
- woocommerce post_type conflict with existing post type
- How to make sure, that only the selected post is changing?
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Get month and day from a Date Picker custom field
- Custom Search Template for Custom Post Types
- Show Custom Post Type taxonomy term that matches custom field
- Order by custom field attribute
- Select Menu for Custom post Type does not save
- is_singular won’t call my functions?
- Cant we use a PHP file directly like myhome.com/some.php?
- Inserting two categories
- WooCommerce – Complete Order when an action occurs
- How to manage a bookstore
- Comments are not working on Custom Post Type
- Add Category names to post lists of custom post type