Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1435859
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 questionI'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 questionI'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 badges1 Answer
Reset to default 1Add 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 );
本文标签: plugin developmentHow to remove the WooCommerce ProductgtCategory thumbnail from admin
版权声明:本文标题:plugin development - How to remove the WooCommerce Product->Category thumbnail from admin 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745675702a2669838.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论