I have a wordpress site, with plugins of Woocommerce and WCFM.
I imported multiple products as an admin and also published them.
As a admin, I would like to assign the products to these vendors. According to the WCFM, the vendors, are actually users with Role - Store Vendor.
Based on a certain value of the product (say product URL), I would like to assign that to certain vendor. Can this happen programmatically? Simply put, change the author of the products, based on a certain criteria (product URL), and go through all the products.