I’m developing my first theme for woocommerce.
I need to be able to have “authors” (really “designers”) assigned to woocommerce products. Is that feasible? I was thinking of using the wordpress built-in “author” user, but the interface of a product editing does not provide the “author” box, unlike a “post” editing interface.
Simply use
add_post_type_support
:User assigned with custom role
Authors enabled in Products post type
Another option, which I’m not sure of its correctness, it to hook into
woocommerce_register_post_type
* and register the post type first. This is a copy of the original function plus the vars needed, withauthor
appended to thesupports
argument.* /wp-content/plugins/woocommerce/woocommerce.php, line 885