• You have a bug causing swatch previews in attribute term lists to show in ALL custom columns added by other plugins.

    You are not properly checking for the wvs-meta-preview column in your taxonomy_column() callback method. You are also meant to return the output, not echo it directly, since it’s a Filter not an Action.

    You are breaking the filter completely by doing this and causing conflicts with a lot of other plugins.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @mewz

    Thanks for reaching us. We are sorry for your inconvenience.

    Could you send us the latest version of the column plugin that you are using on your site? We’ll try to investigate your issue by installing your theme on our local setup.

    You can upload the plugin file in Dropbox or Google Drive and send the download link here directly.?

    Looking forward to hearing from you soon.

    Thank you

    Thread Starter Mewz

    (@mewz)

    Did you not even bother to look at my screenshot? This isn’t a frontend issue, it’s a bug with the backend attribute term lists.

    Just create an Attribute, set it to the Color type, and add this snippet to the site:

    add_action('admin_init', function() {
    	if (empty($_GET['taxonomy'])) return;
    
    	$taxonomy = $_GET['taxonomy'];
    
    	add_filter("manage_edit-{$taxonomy}_columns", function($columns) {
    		$columns['test1'] = 'Test 1';
    		$columns['test2'] = 'Test 2';
    		$columns['test3'] = 'Test 3';
    
    		return $columns;
    	});
    
    	add_filter("manage_{$taxonomy}_custom_column", function($output, $column_name, $term_id) {
    		if (in_array($column_name, ['test1', 'test2', 'test3'])) {
    			return 'TEST OUTPUT';
    		}
    
    		return $output;
    	}, 10, 3);
    });

    The bugged callback methods are in this file:

    woo-variation-swatches/includes/class-wvs-term-meta.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BUG: Breaking Attribute Column Filters’ is closed to new replies.