Post type change breaks WP_Query
-
Hi there,
we built a public plugin based on WooCommerce and noticed a breaking change in new WooCommerce installations.
Instead of
shop_order, orders in wp_posts
now are stored with ashop_order_placehold
post type.Hence, our WP_Query looking for orders with a specific post meta no longer work.
Interesting enough, on older installations, the old post type string is used, while the change only applies to new installations.
The change seems related to “High Performance Order Storage”, but I haven’t found information on how to adjust queries for this. I would like to not just extend our query with that additional post type and instead use a solution that is more WooCommerce native, if there is one.
Thanks,
Thomas
- The topic ‘Post type change breaks WP_Query’ is closed to new replies.