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.

Adding 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.

Adding 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' );
}

Adding Multiple Authors 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 Multiple Authors add-on for PublishPress.
  • Go to PublishPress > Settings > Multiple Authors.
  • Use this guide to place a Multiple 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 Multiple Authors.

  • Publish your content and you’ll see the product authors are now visible:

Summary

Please let us know if you have any questions about adding authors to your WooCommerce products.

PS. If you want to do more with WooCommerce, check out the WooCommerce Checklist which allows you to make sure all your products meet the same high standards.

Leave a Reply

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

Get professional publishing tools for WordPress! Get PublishPress

[i]
[i]