我一点都不懂,但似乎效果不错。感谢@Buttered\\u Toast提及有用的线程。
add_action("init", function() {
global $wp_filter;
foreach($wp_filter["wp"][10] as $id => $filter) {
if(is_array($filter["function"]) && count($filter["function"]) == 2 &&
get_class($filter["function"][0]) == "Post_Views_Counter_Columns" &&
$filter["function"][1] == "admin_bar_maybe_add_style") {
remove_action("wp", $id);
}
}
}, 99);