Viewing 1 replies (of 1 total)
  • Plugin Contributor Darko G.

    (@darkog)

    Hello,

    Sorry for my late reply.

    This is how it should work. The plugin syncs the product category images so you don’t need to set them multiple times.

    However, you can disable it with the following code:

    
    /**
     * Disable the category images from sync
     * @param $meta_keys
     *
     * @return string[]
     */
    function dg_disable_category_image_from_sync($meta_keys) {
    	$unallowed = ['thumbnail_id'];
    	$new_metak = [];
    
    	foreach($meta_keys as $meta_key) {
    		if(!in_array($meta_key, $unallowed)) {
    			$new_metak[] = $meta_key;
    		}
    	}
    
    	return $new_metak;
    }
    add_filter('wpi_copy_term_metas', 'dg_disable_category_image_from_sync');

    Best Regards,
    Darko

    • This reply was modified 2 years, 8 months ago by Darko G..
Viewing 1 replies (of 1 total)
  • The topic ‘Category Thumbnail/image’ is closed to new replies.