0

I've successfully removed the thumbnail from the Admin->Products

add_filter( 'manage_edit-product_columns`, 'myRemoveProductColumns' );
function myRemoveProductColumns( $columns)
{    
    unset( $columns['thumb'] );
    return $columns;
}

but can't seem to remove that same column from the Product->Categories.

I tried:

add_filter( 'manage_edit-product_cat_columns`, 'myRemoveProductCategoryColumns' );
function myRemoveProductCategoryColumns( $columns)
{    
    unset( $columns['thumb'] );
    return $columns;
}

to no avail. Any thoughts? Have I missed something here? Thanks

closed as off-topic by Jacob Peattie, rudtek, Nathan Johnson, Howdy_McGee Apr 3 at 3:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

0

Add lower priority to your action, then it should work. (At least it worked on my local WP sandbox)

add_filter( 'manage_edit-product_cat_columns', 'myRemoveProductCategoryColumns', 99 );

Not the answer you're looking for? Browse other questions tagged or ask your own question.