WPprodigy / woocommerce-external-product-embed

Provides a shortcode to embed products from another store.
Other
49 stars 24 forks source link

Feature request: post_author #7

Closed bentasm1 closed 7 years ago

bentasm1 commented 8 years ago

If you can add a post_author query, then you can also start hooking into WC Vendors for multi vendor marketplaces. Quite a useful feature to add. Simply doing post_author="xx" where xx is ID, and you'd make a lot of our members happy. :-)

bentasm1 commented 8 years ago

https://www.wcvendors.com/help/topic/external-product-list-adverts/

WPprodigy commented 8 years ago

Interesting. I'll look into adding that. Could you email me the plugin so I can test with it?

Also, I'm assuming this is just needed for the [recent_external_products] shortcode right? Since the other one uses product ID's, post author would be irrelevant.

WPprodigy commented 7 years ago

WooCommerce doesn't do much with authors by default (products hide the option), so it doesn't seem to be possible to get a list of products using post_author with the current version of the API: http://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-products. Would require some customization on the WC side, something this plugin doesn't have control over.

But I will keep an eye out for this to be a filtering option.