最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugin development - How to remove the WooCommerce Product->Category thumbnail from admin

matteradmin20PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

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. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

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

Share Improve this question asked Mar 19, 2019 at 14:52 GregGreg 152 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

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 );
Post a comment

comment list (0)

  1. No comments so far