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

In this post, I'll show you how to make the Authors feature visible again in WooCommerce.


How to add authors to WooCommerce with a plugin

We're going to the use the PublishPress Authors plugin for this. Please read the documentation if you're unfamiliar with PublishPress Authors.

  • Install the “PublishPress Authors” plugin.
  • Activate the plugin.
  • Go to “Authors”, then “Settings”.
  • Check the box for “Products”.
Authors Woocommerce
Authors Woocommerce
  • Go to edit one of your WooCommerce products and you'll now see the “Authors” feature is available in the sidebar:
Woocommerce Authors
Woocommerce Authors

Once you've made this change, Products can now be shown on Author profile URLs.


Other methods to add authors to WooCommerce

You can add this code to your theme’s functions.php file:

function add_author_support_to_products() {
   add_post_type_support( 'product', 'author' ); 
}
add_action( 'init', 'add_author_support_to_products' );

Many custom post types don't have support for authors. Here's how to add authors to any custom post type.


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

Join PublishPress today and you'll get powerful publishing and permissions plugins to improve your WordPress site.


More WooCommerce Tutorials

Author

  • Steve Burge

    Steve is the founder of PublishPress. He's been working with open source software for over 20 years. Originally from the UK, he now lives in Sarasota in the USA. This profile is generated by the PublishPress Authors plugin.

7 Comments

  1. Thanks for this post!

    Do I really have to install two Plugins to change the Author of a WooCommerce Product? That’s hard for the loading time. Can I delete or pause it afterwards?

    Thanks in advance,
    Cheers Christoph

  2. thank you. I want to send an e-mail notification to the product author when the product is purchased. how can I do that?

  3. Hello, when adding extra authors with publish press plugin to woocommerce products, when i click in the author, the related products will be shown in the Authors page?

    Thanks

Leave a Reply

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