I am trying to allow your plugin to work with my WooCommerce ordering platform. I need to attach documents to the order for storage and retrieval later. I don’t really need the front end functionality. However, I do need your plugin to work with a custom post type: shop_order
I have altered line 91 of settings.php to reflect:
public function load_post_types()
$this->post_types = array('post', 'page', 'shop_order');
That has allowed the plugin to show up in the custom post type but it will not save or retrieve any documents.
Can you provide us temporary admin access to your site (Set as private reply option)? We’d like to know why you’re unable to use plugin settings to add DA fields to shop_order post type (as it supports custom post types too) and why it does not store the attachments.
Yes, I can confirm that it doesn’t work properly in shop_order CPT at your site. We’ll see if it works in our server enviroment and try to provide a fix if it doesn’t. (the filter to add more post types without code modification will be included shortly).
Jason, we have no solution for this for the moment. We know what happens that it’s not working on Woocommerce shop_order but didn’t find a clue why. We tested many other post types and it worked well everywhere as it’s based on native WordPress API.
In other words, we think that’s on the WooCommerce side and it would be great if you contacted them. If you will, here’s a detailed info on the issue that you can share:
When WP Media manager is opened at “shop_order” post type screen, there’s no “wp.media.view.settings.post.id” variable available (the whole wp.media.view.settings.post to be precise).