Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我安装了插件“WooCommerce 订单状态管理器”。当我们更改任何自定义状态顺序时,状态会成功更改,但此顺序也会显示在“MINE”过滤器列表中。
我怎样才能删除这个我的过滤器?
我找到了一个解决方案:
在主题 funtion.php 文件中添加此内容
function jp_filter_edit_shop_order_views( $views ) { // Unset the Mine option. unset( $views['mine'] ); return $views; }; add_filter( 'views_edit-shop_order', 'jp_filter_edit_shop_order_views' );