How to Add Authors to WooCommerce Products

By default, WooCommerce products don't show the default “Authors” feature in WordPress.

The WooCommerce developers made this choice for a good reason. Posts, Pages and other content normally need an “author”. However, eCommerce products might have a “Vendor” or “Manufacturer”, but not often an “author”.

But, there's a problem. The WooCommerce developers have only hidden the author feature. The feature still exists and the user who first creates the product is still secretly assigned to be the author.

So if you have a Notifications system that send emails to authors (such as the one in PublishPress) your “authors” will still get notifications. And there's no way to change the author.

In this post, I'll show you how to make the Authors feature visible again in WooCommerce. This will allow you to assign products to different users.


How to add authors to WooCommerce with a plugin

  • Download the “Change Product Author for WooCommerce” plugin. Because the plugin hasn't been updated for a while, it can't be installed directly from inside your WordPress site.
  • Log in to your WordPress site.
  • Go to “Plugins”, then “Add New”.
  • Upload the plugin file that you just download.
  • Activate the plugin.
  • Go to edit one of your WooCommerce products and you'll now see the “Authors” feature is available again.

How to add authors to WooCommerce with code

On the “Change Product Author for WooCommerce” page at WordPress.org, you'll also find a small code snippet you can use to add authors to WooCommerce.

Adding this code to your theme’s functions.php file:

if ( post_type_exists( 'product' ) ) {
add_post_type_support( 'product', 'author' );
}

This tutorial has more details on adding authors to post types.


How to Add More Than One Author to WooCommerce

One of our users asked if it was possible to add more than one author to WooCommerce. Yes, absolutely. In this situation, it made perfect sense because the user was selling books! Each WooCommerce product really did have authors!

  • Install the “Change Product Author for WooCommerce” plugin or use the code snippet above.
  • Install the PublishPress Authors plugin.
  • Go to Authors > Settings.
  • Use this guide to place a PublishPress Authors widget in your site's sidebar.
  • Under “Add to these post types”, select “Products”.
  • Click “Save Changes”.
  • Go and edit one of your WooCommerce products.
  • Select the authors of your product using the “Authors” box in the right sidebar. They do need to be users on your site, unless you use the Guest Authors feature in PublishPress Authors.
  • Publish your content and you'll see the product authors are now visible:

Get PublishPress Authors Pro and the other Pro plugins

The Pro versions of PublishPress plugins are packed with extra features to help you manage your content. Get a PublishPress membership today for full access:


More WooCommerce Tutorials


Steve Burge

Steve is the founder of PublishPress. Originally from the UK, he now lives in Sarasota in the USA. (P.S. This profile is generated by the PublishPress Authors plugin)

Comments (4)

Leave a Reply

Your email address will not be published. Required fields are marked *

Professional publishing plugins for WordPress! Get PublishPress