wp 去除google字体加载

add_filter('gettext_with_context', 'disable_open_sans', 888, 4 );
function disable_open_sans( $translations, $text, $context, $domain )
{
    if ( 'Open Sans font: on or off' == $context && 'on' == $text ) {
        $translations = 'off';
    }
    return $translations;
}
posted @ 2014-06-09 23:56  kedarui  阅读(189)  评论(0编辑  收藏  举报