{"id":4623,"date":"2020-04-09T11:31:51","date_gmt":"2020-04-09T04:31:51","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=4623"},"modified":"2021-06-14T22:57:19","modified_gmt":"2021-06-14T15:57:19","slug":"cach-vo-hieu-hoa-bieu-tuong-cam-xuc-trong-wordpress","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/cach-vo-hieu-hoa-bieu-tuong-cam-xuc-trong-wordpress\/","title":{"rendered":"C\u00e1ch v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress"},"content":{"rendered":"<p>H\u00f4m nay TinoHost s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress.<\/p>\n<p><span class=\"notranslate\">C\u00f3 r\u1ea5t nhi\u1ec1u t\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t web v\u00e0 c\u00e1c tinh ch\u1ec9nh c\u00f3 th\u1ec3 l\u00e0m \u0111\u1ec3 l\u00e0m cho trang web WordPress c\u1ee7a b\u1ea1n t\u1ea3i nhanh h\u01a1n.<\/span>\u00a0<span class=\"notranslate\">M\u1ed9t t\u1ed1i \u01b0u h\u00f3a\u00a0 kh\u00e1 d\u1ec5 d\u00e0ng l\u00e0 v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac.<\/span>\u00a0<span class=\"notranslate\">Bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac (Emojis) l\u00e0 nh\u1eefng bi\u1ec3u t\u01b0\u1ee3ng nh\u1ecf \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 th\u1ec3 hi\u1ec7n \u00fd t\u01b0\u1edfng ho\u1eb7c c\u1ea3m x\u00fac.<\/span>\u00a0<span class=\"notranslate\">M\u1eb7c d\u00f9 c\u00e1c bi\u1ec3u t\u01b0\u1ee3ng n\u00e0y r\u1ea5t th\u00fa v\u1ecb, nh\u01b0ng ch\u00fang c\u00f3 th\u1ef1c s\u1ef1 c\u1ea7n thi\u1ebft cho trang web WordPress c\u1ee7a b\u1ea1n kh\u00f4ng? Tu\u1ef3 v\u1edbi m\u1ed7i website, <\/span>\u00a0\u0111<span class=\"notranslate\">\u1eb7c bi\u1ec7t n\u1ebfu b\u1ea1n l\u00e0 m\u1ed9t doanh nghi\u1ec7p, th\u00ec c\u00f3 th\u1ec3 \u0111\u00e2y l\u00e0 th\u00e0nh ph\u1ea7n kh\u00f4ng c\u1ea7n thi\u1ebft, t\u1ed1n t\u00e0i nguy\u00ean khi load.<\/span><\/p>\n<p><span class=\"notranslate\">T\u1eeb b\u1ea3n WordPress 4.2 , h\u1ecd \u0111\u00e3 th\u00eam h\u1ed7 tr\u1ee3 cho bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac v\u00e0o core wordpress cho c\u00e1c tr\u00ecnh duy\u1ec7t c\u0169 h\u01a1n.<\/span>\u00a0\u00a0<span class=\"notranslate\">M\u1eb7c d\u00f9 t\u1ec7p wp-emoji-release.min.js n\u00e0y ch\u1ec9 c\u00f3 10,5 KB, nh\u01b0ng theo th\u1eddi gian d\u00e0i l\u01b0\u1ee3ng t\u1ea3i c\u0169ng kh\u00f4ng ph\u1ea3i l\u00e0 nh\u1ecf, c\u0169ng nh\u01b0 n\u1ebfu kh\u00f4ng c\u1ea7n thi\u1ebft th\u00ec vi\u1ec7c t\u1ea3i n\u00e0y c\u0169ng l\u00e0 v\u00f4 ngh\u0129a.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6470\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/wp-emoji-release.png\" sizes=\"(max-width: 1771px) 100vw, 1771px\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/wp-emoji-release.png 1771w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_wp-emoji-release-300x91.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_wp-emoji-release-768x232.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_wp-emoji-release-1024x310.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/wp-emoji-release-460x139.png 460w\" alt=\"t\u1eadp tin ph\u00e1t h\u00e0nh bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac wp\" width=\"1771\" height=\"536\" title=\"\"><\/p>\n<h2 id=\"V\u00f4_hi\u1ec7u_h\u00f3a_bi\u1ec3u_t\u01b0\u1ee3ng_c\u1ea3m_x\u00fac_trong_WordPress\u00a0\"><span class=\"notranslate\">V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress<\/span>\u00a0<span id=\"v-hiu-ha-biu-tng-cm-xc-trong-wordpress\" class=\"anchor-hash\" aria-hidden=\"true\"><\/span><\/h2>\n<p><span class=\"notranslate\">C\u00f3 m\u1ed9t v\u00e0i c\u00e1ch kh\u00e1c nhau \u0111\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a Bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress.<\/span>\u00a0<span class=\"notranslate\">B\u1ea1n c\u00f3 th\u1ec3 l\u00e0m \u0111i\u1ec1u \u0111\u00f3 v\u1edbi m\u1ed9t plugin mi\u1ec5n ph\u00ed ho\u1eb7c ch\u00e8n code v\u00e0o theme website.<\/span><\/p>\n<ul>\n<li><span class=\"notranslate\">V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac v\u1edbi plugin<\/span><\/li>\n<li><span class=\"notranslate\">V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac v\u1edbi c\u00e1ch ch\u00e8n code.<\/span><\/li>\n<\/ul>\n<h3 id=\"1._V\u00f4_hi\u1ec7u_h\u00f3a_bi\u1ec3u_t\u01b0\u1ee3ng_c\u1ea3m_x\u00fac_trong_WordPress_v\u1edbi_Plugin\u00a0\"><span class=\"notranslate\">1. V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress v\u1edbi Plugin<\/span>\u00a0<span id=\"1-v-hiu-ha-biu-tng-cm-xc-trong-wordpress-vi-plugin\" class=\"anchor-hash\" aria-hidden=\"true\"><\/span><\/h3>\n<p><span class=\"notranslate\">C\u00e1ch \u0111\u1ea7u ti\u00ean \u0111\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac l\u00e0 ch\u1ec9 c\u1ea7n s\u1eed d\u1ee5ng m\u1ed9t plugin mi\u1ec5n ph\u00ed c\u00f3 t\u00ean l\u00e0 \u00a0<a href=\"https:\/\/wordpress.org\/plugins\/disable-emojis\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Disable Emojis<\/a>, \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n b\u1edfi\u00a0Ryan Hellyer\u00a0.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6472\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-wordpress-plugin.jpg\" sizes=\"(max-width: 1347px) 100vw, 1347px\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-wordpress-plugin.jpg 1347w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_disable-emojis-wordpress-plugin-300x98.jpg 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_disable-emojis-wordpress-plugin-768x250.jpg 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_disable-emojis-wordpress-plugin-1024x333.jpg 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-wordpress-plugin-460x150.jpg 460w\" alt=\"v\u00f4 hi\u1ec7u h\u00f3a plugin bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac\" width=\"1347\" height=\"438\" title=\"\"><\/p>\n<p><span class=\"notranslate\">Plugin n\u00e0y si\u00eau nh\u1eb9, ch\u00ednh x\u00e1c ch\u1ec9 9 KB.<\/span>\u00a0<span class=\"notranslate\">Khi vi\u1ebft b\u00e0i n\u00e0y, hi\u1ec7n t\u1ea1i n\u00f3 c\u00f3 h\u01a1n 30.000 l\u01b0\u1ee3t c\u00e0i \u0111\u1eb7t ho\u1ea1t \u0111\u1ed9ng v\u1edbi x\u1ebfp h\u1ea1ng 5\/5.\u00a0<\/span><\/p>\n<p><span class=\"notranslate\">B\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i xu\u1ed1ng t\u1eeb\u00a0kho l\u01b0u tr\u1eef WordPress ho\u1eb7c b\u1eb1ng c\u00e1ch t\u00ecm ki\u1ebfm n\u00f3 trong b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n WordPress c\u1ee7a b\u1ea1n trong ph\u1ea7n plugins.<\/span>\u00a0<span class=\"notranslate\">Sau khi t\u1ea3i xu\u1ed1ng b\u1ea1n k\u00edch ho\u1ea1t v\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i l\u00e0m g\u00ec th\u00eam.<\/span><\/p>\n<p><span class=\"notranslate\">Ngo\u00e0i ra c\u00f2n c\u00f3 m\u1ed9t plugin thay th\u1ebf mi\u1ec5n ph\u00ed c\u00f3 t\u00ean l\u00e0 <a href=\"https:\/\/wordpress.org\/plugins\/emoji-settings\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Emoji settings<\/a>. .<\/span>\u00a0<span class=\"notranslate\">Plugin n\u00e0y \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng cho\u00a0 Multisite v\u00e0 cung c\u1ea5p cho b\u1ea1n\u00a0 m\u1ed9t t\u00f9y ch\u1ecdn \u0111\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a ch\u00ednh bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-9693\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/emoji-settings.jpg\" sizes=\"(max-width: 1345px) 100vw, 1345px\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/emoji-settings.jpg 1345w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_emoji-settings-300x97.jpg 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_emoji-settings-768x249.jpg 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_emoji-settings-1024x332.jpg 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/emoji-settings-460x149.jpg 460w\" alt=\"c\u00e0i \u0111\u1eb7t bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac\" width=\"1345\" height=\"436\" title=\"\"><\/p>\n<p><span class=\"notranslate\">B\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i xu\u1ed1ng t\u1eeb\u00a0kho l\u01b0u tr\u1eef WordPress ho\u1eb7c b\u1eb1ng c\u00e1ch t\u00ecm ki\u1ebfm n\u00f3 trong b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n WordPress c\u1ee7a b\u1ea1n trong ph\u1ea7n plugins.<\/span>\u00a0<span class=\"notranslate\">Sau khi t\u1ea3i xu\u1ed1ng b\u1ea1n k\u00edch ho\u1ea1t , sau \u0111\u00f3 v\u00e0o ph\u1ea7n thi\u1ebft l\u1eadp, t\u1ea1i \u0111\u00e2y b\u1ea1n c\u00f3 th\u1ec3 b\u1eadt\/t\u1eaft t\u00ednh n\u0103ng theo mong mu\u1ed1n.<\/span><\/p>\n<p><span class=\"notranslate\">B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng m\u1ed9t plugin\u00a0 tr\u1ea3 ph\u00ed nh\u01b0\u00a0 <a href=\"https:\/\/perfmatters.io\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">perfmatters<\/a>\u00a0 cho ph\u00e9p b\u1ea1n v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac c\u00f9ng v\u1edbi c\u00e1c t\u1ed1i \u01b0u h\u00f3a kh\u00e1c cho trang web WordPress c\u1ee7a b\u1ea1n.<\/span><\/p>\n<div id=\"attachment_12787\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"size-full wp-image-12787\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-with-perfmatters.png\" sizes=\"(max-width: 1335px) 100vw, 1335px\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-with-perfmatters.png 1335w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_disable-emojis-with-perfmatters-300x156.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_disable-emojis-with-perfmatters-768x399.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/1_disable-emojis-with-perfmatters-1024x532.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-with-perfmatters-610x317.png 610w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/disable-emojis-with-perfmatters-460x239.png 460w\" alt=\"V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong plugin perfmatters\" width=\"1335\" height=\"693\" title=\"\"><\/p>\n<p class=\"wp-caption-text\"><span class=\"notranslate\">V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong plugin perfmatters<\/span><\/p>\n<\/div>\n<h3 id=\"2._V\u00f4_hi\u1ec7u_h\u00f3a_bi\u1ec3u_t\u01b0\u1ee3ng_c\u1ea3m_x\u00fac_trong_WordPress_v\u1edbi_c\u00e1ch_ch\u00e8n_code\"><span class=\"notranslate\">2. V\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress v\u1edbi c\u00e1ch ch\u00e8n code<\/span><span id=\"2-v-hiu-ha-biu-tng-cm-xc-trong-wordpress-vi-m\" class=\"anchor-hash\" aria-hidden=\"true\"><\/span><\/h3>\n<p><span class=\"notranslate\">N\u1ebfu b\u1ea1n kh\u00f4ng mu\u1ed1n c\u00e0i \u0111\u1eb7t th\u00eam m\u1ed9t plugin kh\u00e1c \u0111\u1ec3 l\u00e0m vi\u1ec7c n\u00e0y, b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac b\u1eb1ng c\u00e1ch ch\u00e8n code v\u00e0o file functions.php theme b\u1ea1n \u0111ang s\u1eed d\u1ee5ng v\u1edbi \u0111o\u1ea1n m\u00e3 sau.<\/span><\/p>\n<pre class=\"  language-php\"><code class=\"  language-php\"><span class=\"token comment\">\/** * Disable the emoji's *\/<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">disable_emojis<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token function\">remove_action<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'wp_head'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'print_emoji_detection_script'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">7<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">remove_action<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'admin_print_scripts'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'print_emoji_detection_script'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">remove_action<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'wp_print_styles'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'print_emoji_styles'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">remove_action<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'admin_print_styles'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'print_emoji_styles'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">remove_filter<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'the_content_feed'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'wp_staticize_emoji'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">remove_filter<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'comment_text_rss'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'wp_staticize_emoji'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">remove_filter<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'wp_mail'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'wp_staticize_emoji_for_email'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">add_filter<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'tiny_mce_plugins'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'disable_emojis_tinymce'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token function\">add_filter<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'wp_resource_hints'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'disable_emojis_remove_dns_prefetch'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token function\">add_action<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'init'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'disable_emojis'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/** * Filter function used to remove the tinymce emoji plugin. * * @param array $plugins * @return array Difference betwen the two arrays *\/<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">disable_emojis_tinymce<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token variable\">$plugins<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span> <span class=\"token function\">is_array<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token variable\">$plugins<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token keyword\">return<\/span> <span class=\"token function\">array_diff<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token variable\">$plugins<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">array<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'wpemoji'<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">else<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">array<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token comment\">\/** * Remove emoji CDN hostname from DNS prefetching hints. * * @param array $urls URLs to print for resource hints. * @param string $relation_type The relation type the URLs are printed for. * @return array Difference betwen the two arrays. *\/<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">disable_emojis_remove_dns_prefetch<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token variable\">$urls<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$relation_type<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'dns-prefetch'<\/span> <span class=\"token operator\">==<\/span> <span class=\"token variable\">$relation_type<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token comment\">\/** This filter is documented in wp-includes\/formatting.php *\/<\/span> <span class=\"token variable\">$emoji_svg_url<\/span> <span class=\"token operator\">=<\/span> <span class=\"token function\">apply_filters<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token single-quoted-string string\">'emoji_svg_url'<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token single-quoted-string string\">'https:\/\/sworg\/images\/core\/emoji\/2\/svg\/'<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token variable\">$urls<\/span> <span class=\"token operator\">=<\/span> <span class=\"token function\">array_diff<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token variable\">$urls<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">array<\/span><span class=\"token punctuation\">(<\/span> <span class=\"token variable\">$emoji_svg_url<\/span> <span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">return<\/span> <span class=\"token variable\">$urls<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>H\u00f4m nay TinoHost s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch v\u00f4 hi\u1ec7u h\u00f3a bi\u1ec3u t\u01b0\u1ee3ng c\u1ea3m x\u00fac trong WordPress. C\u00f3 r\u1ea5t nhi\u1ec1u t\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t web v\u00e0 c\u00e1c tinh ch\u1ec9nh c\u00f3 th\u1ec3 l\u00e0m \u0111\u1ec3 l\u00e0m cho trang web WordPress c\u1ee7a b\u1ea1n t\u1ea3i nhanh h\u01a1n.\u00a0M\u1ed9t t\u1ed1i \u01b0u h\u00f3a\u00a0 kh\u00e1 d\u1ec5 d\u00e0ng l\u00e0 v\u00f4 hi\u1ec7u h\u00f3a [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5167,5154],"class_list":["post-4623","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-cau-hoi-chung-ve-wordpress","ht_kb_category-wordpress"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=4623"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4623\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=4623"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=4623"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=4623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}