Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jeffrey-wp

    (@jeffrey-wp)

    Yes, that is possible. To set set the image categories to be the same as the WooCommerce catageroies just add this code to the functions.php of your theme (or child-theme):
    add_filter( 'wpmediacategory_taxonomy', function(){ return 'product_cat'; } ); //requires PHP 5.3 or newer

    Or if you are using and older PHP version:
    add_filter( 'wpmediacategory_taxonomy', create_function( '', 'return "product_cat";' ) ); //requires PHP 4.0.1 or newer

    Thread Starter xbaha

    (@xbaha)

    hi
    this code causes the category section to disappear when i add a new product!
    also causes the issue in another post:

    https://www.ads-software.com/support/topic/bulk-action-2?replies=1

    when i removed the code, everything went back to normal.

    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘category question’ is closed to new replies.