0
我试图重写功能(在升级安全的方式)覆盖二十十一主题选项链接的颜色风格
twentyeleven_print_link_color_style
这是对的wp-content 378线发现/主题/ twentyeleven/INC /主题-options.php
我在我的子主题functions.php中尝试了以下内容,但twentyeleven_print_link_color_style仍在开启(我可以看到正在输出的css)。
add_action('after_setup_theme', 'goodbye_internal_style_sheet');
function goodbye_internal_style_sheet() {
remove_filter('wp_head', 'twentyeleven_print_link_color_style');
}