How to change WooCommerce product ownership?

WooCommerce is an open-source e-commerce plugin for WordPress. WooCommerce is the best e-commerce system at this time. It is designed for small to large-sized online merchants using WordPress. Launched on September 27, 2011, the plugin quickly became popular for its simplicity to install and customize and free base product.

WooCommerce has no option for changing the ownership. If you create a product by your user ID, you can’t change the author.

Here is the solution.

Add this code to your theme functions.php file

add_action('init', 'function_to_add_author_woocommerce', 999 );

function function_to_add_author_woocommerce() {
  add_post_type_support( 'product', 'author' );
Cashier theme functions.php
Cashier theme functions.php

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.