WP移除emoji表情圖示、s.w.org程式碼








※本篇內文資訊參考如下※



- -

※更新文章日期: 2018-06-26










移除emoji、s.w.org程式碼
背景會預設載入
<link rel=’dns-prefetch’ href=’//fonts.googleapis.com’ />
<link rel=’dns-prefetch’ href=’//s.w.org’ />

window._wpemojiSettings去除

找到functions.php文件放入以下程式碼
remove_action( ‘wp_head’, ‘wp_resource_hints’, 2 );
remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’);
remove_action( ‘admin_print_styles’, ‘print_emoji_styles’);
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7);
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’);
remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’);
remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’);
remove_filter( ‘wp_mail’, ‘wp_staticize_emoji_for_email’);








-

-