Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpforms-lite domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u193480525/domains/fahimm.com/public_html/wp-includes/functions.php on line 6121
How to change WooCommerce product ownership? – Fahim Murshed

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

Leave a Reply