How to change WooCommerce product ownership?

How to change WooCommerce product ownership? 1

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 product ownership. If you create a product by your user ID, you can’t change the author.

So, I have created a plugin or you can follow this instructions.

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

If you don’t want to add any code to your theme or you are not well about WordPress theme modifications, you can install Change WooCommerce Product Author plugin. Just install and active.

Enjoy

Cashier theme functions.php
Cashier theme functions.php

Author: Murshid Alam

Organizer of Barishal WordPress Meetup, WordPress Enthusiastic and, Open Source Lover. Over the last few years, I learned web programming and worked with them locally. I also assist in designing, developing and testing websites too! Before coming to web programming I was mostly involved with Electric Media(Channel i), Newspaper (Priyo, Bhorer Kagoj) and volunteering activities (including NGOs). I love to contribute to the WordPress Community. I am always happy to meet new peoples in the WordPress community and see how I can help them achieve their goals. When I am not online and WordPress, I love to play football, travel, riding the bike and attend Meetup/WordCamps! If you’d like, you can help me to attend WordCamps around the World.

Leave a Reply