钩子文档

wp_title

💡 云策文档标注

概述

wp_title 是一个 WordPress 过滤器,用于修改页面标题文本,影响 HTML 标签的内容。它接受三个参数:标题字符串、分隔符和分隔符位置,开发者可以通过 add_filter 注册自定义函数来调整标题输出。</p><h2>关键要点</h2><ul><li>wp_title 过滤器用于过滤页面标题,作用于 wp_title() 函数生成的 HTML <title> 标签,而非文章、页面或分类标题本身。</li><li>过滤器参数包括 $title(标题字符串)、$sep(分隔符)和 $seplocation(分隔符位置,可选 'left' 或 'right')。</li><li>注册过滤器时需使用 add_filter('wp_title', 'filter_function_name', 10, 3),其中 filter_function_name 必须是唯一的函数名,且函数必须返回处理后的标题字符串。</li><li>wp_title 在历史上曾被标记为弃用,但后来已恢复使用;建议开发者关注相关替代过滤器如 pre_get_document_title、document_title_separator 和 document_title_parts。</li></ul><h2>代码示例</h2><pre class="hljs language-php"><code class="hljs language-php">add_filter( <span class="hljs-string">'wp_title'</span>, <span class="hljs-string">'filter_function_name'</span>, <span class="hljs-number">10</span>, <span class="hljs-number">3</span> ); <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">filter_function_name</span><span class="hljs-params">( $title, $sep, $seplocation )</span> </span>{ <span class="hljs-comment">// 自定义标题处理逻辑</span> <span class="hljs-keyword">return</span> $title; }</code></pre><h2>注意事项</h2><ul><li>过滤器函数必须返回标题字符串,否则可能导致标题空白或引发其他插件错误。</li><li>函数名 filter_function_name 不能与已声明的其他函数名冲突,需确保唯一性。</li><li>虽然 wp_title 当前可用,但建议开发者了解并考虑使用 WordPress 4.4 引入的文档标题相关过滤器以保持代码前瞻性。</li></ul> </div> </section> <hr class="doc-separator"> <section class="original-content"> <div class="original-header"> <span class="original-icon">📄</span> <span class="original-label">原文内容</span> </div> <div class="original-body"> <section class="wp-block-wporg-code-reference-summary"> <p>Filters the text of the page title.</p> </section> <section class="wp-block-wporg-code-reference-parameters"> <h2 id="parameters" class="is-toc-heading wp-block-heading has-heading-5-font-size"><a href="#parameters">Parameters</a></h2> <dl> <dt><code class="hljs language-php">$title</code><span class="type"><span class="string">string</span></span></dt> <dd> <div class="desc"><span class="description">Page title.</span></div> </dd> <dt><code class="hljs language-php">$sep</code><span class="type"><span class="string">string</span></span></dt> <dd> <div class="desc"><span class="description">Title separator.</span></div> </dd> <dt><code class="hljs language-php">$seplocation</code><span class="type"><span class="string">string</span></span></dt> <dd> <div class="desc"><span class="description">Location of the separator (either <code class="hljs language-javascript"><span class="hljs-string">'left'</span></code> or <code class="hljs language-javascript"><span class="hljs-string">'right'</span></code>).</span></div> </dd> </dl> </section> <section class="wporg-has-embedded-code wp-block-wporg-code-reference-explanation"> <h2 id="more-information" class="is-toc-heading wp-block-heading has-heading-5-font-size"><a href="#more-information">More Information</a></h2> <p class="wp-block-paragraph">The <code class="hljs language-">wp_title</code> filter is used to filter the title of the page (called with <code class="hljs language-xml"><span class="hljs-tag"><<span class="hljs-name">a</span> <span class="hljs-attr">title</span>=<span class="hljs-string">"Function Reference/wp title"</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"https://developer.wordpress.org/reference/functions/wp_title/"</span>></span>wp_title()<span class="hljs-tag"></<span class="hljs-name">a</span>></span></code>). This filters the text appearing in the HTML <title> tag (sometimes called the “title tag” or “meta title”), not the post, page, or category title.</p> <p class="wp-block-paragraph">A plugin (or theme) can register as a content filter with the code:</p> <pre class="wp-block-code hljs language-javascript"><code class="wp-block-code hljs language-javascript">add_filter( <span class="hljs-string">'wp_title'</span>, <span class="hljs-string">'filter_function_name'</span>, <span class="hljs-number">10</span>, <span class="hljs-number">3</span> );</code></pre> <p class="wp-block-paragraph">Where ‘filter_function_name’ is the function WordPress should call when the content is being retrieved. Note that the filter function <b>must</b> return the content after it is finished processing, or the title will be blank and other plugins also filtering the content may generate errors.</p> <p class="wp-block-paragraph"><b>filter_function_name</b> should be unique function name. It cannot match any other function name already declared.</p> </section> <section class="wp-block-wporg-code-reference-source"> <h2 id="source" class="is-toc-heading wp-block-heading has-heading-5-font-size"><a href="#source">Source</a></h2> <pre class="wp-block-code hljs language-php"><code class="wp-block-code hljs language-php">$title = apply_filters( <span class="hljs-string">'wp_title'</span>, $title, $sep, $seplocation ); </code></pre> <p class="wporg-dot-link-list"><a href="https://developer.wordpress.org/reference/files/wp-includes/general-template.php/">View all references</a> <a href="https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/general-template.php#L1464">View on Trac</a> <a href="https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/general-template.php#L1464-L1464">View on GitHub</a></p> </section> <section class="wp-block-wporg-code-reference-related" data-nosnippet="true"> <h2 id="related" class="is-toc-heading wp-block-heading has-heading-5-font-size"><a href="#related">Related</a></h2> <section style="margin-top:var(--wp--preset--spacing--20)" class="wp-block-wporg-code-table" id="used-by"> <figure class="wp-block-table "> <table> <thead> <tr> <th scope="col">Used by</th> <th scope="col">Description</th> </tr> </thead> <tbody> <tr class=""> <td><a href="https://developer.wordpress.org/reference/functions/wp_title/">wp_title()</a><code class="hljs language-">wp-includes/general-template.php</code></td> <td> <p>Displays or retrieves page title for all areas of blog.</p> </td> </tr> </tbody> </table> </figure> </section> </section> <section class="wp-block-wporg-code-reference-changelog"> <h2 id="changelog" class="is-toc-heading wp-block-heading has-heading-5-font-size"><a href="#changelog">Changelog</a></h2> <section style="margin-top:var(--wp--preset--spacing--20)" class="wp-block-wporg-code-table"> <figure class="wp-block-table "> <table> <thead> <tr> <th scope="col">Version</th> <th scope="col">Description</th> </tr> </thead> <tbody> <tr class=""> <td><a href="https://developer.wordpress.org/reference/since/2.0.0/">2.0.0</a></td> <td>Introduced.</td> </tr> </tbody> </table> </figure> </section> </section> <section class="wp-block-wporg-code-reference-comments" data-nosnippet="true"> <h2 id="user-contributed-notes" class="is-toc-heading wp-block-heading"><a href="#user-contributed-notes">User Contributed Notes</a></h2> <ol class="comment-list"> <li id="comment-1076" data-comment-id="1076" class="comment byuser comment-author-andrewklimek even thread-even depth-1"> <article id="div-comment-1076" class="comment-body"> <p> <a href="#comment-content-1076" class="screen-reader-text">Skip to note 5 content</a></p> <header class="comment-meta"> <div class="comment-author vcard"> <span class="comment-author-attribution"><br /> <a href="https://profiles.wordpress.org/andrewklimek/" rel="external nofollow" class="url">Andrew Klimek</a> </span><br /> <a class="comment-date" href="https://developer.wordpress.org/reference/hooks/wp_title/#comment-1076"><br /> <time datetime="2016-02-10T17:38:28+00:00"><br /> 10 years ago </time><br /> </a></p></div> <div class="user-note-voting" data-nonce="86d20d14ff" data-can-vote="false"><a class="user-note-voting-up" title="You must log in to vote on the helpfulness of this note" data-id="1076" data-vote="up" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-1076"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a><span class="user-note-voting-count " title="68% like this"><span class="screen-reader-text">Vote results for this note: </span>7</span><a class="user-note-voting-down" title="You must log in to vote on the helpfulness of this note" data-id="1076" data-vote="down" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-1076"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a></div> </header> <p> <!-- .comment-metadata --></p> <div class="wporg-has-embedded-code comment-content" id="comment-content-1076"> <p>wp_title is being deprecated, see <a href="https://make.wordpress.org/core/2015/10/20/document-title-in-4-4/" rel="nofollow ugc">https://make.wordpress.org/core/2015/10/20/document-title-in-4-4/</a></p> <p>Please use:</p> <p> <a href="https://developer.wordpress.org/reference/hooks/pre_get_document_title/"><code class="hljs language-">pre_get_document_title</code></a> – short-circuits <code class="hljs language-">wp_get_document_title()</code> if it returns anything other than an empty value.<br /> <a href="https://developer.wordpress.org/reference/hooks/document_title_separator/"><code class="hljs language-">document_title_separator</code></a> – filters the separator between title parts.<br /> <a href="https://developer.wordpress.org/reference/hooks/document_title_parts/"><code class="hljs language-">document_title_parts</code></a> – filters the parts that make up the document title, passed in an associative array.</p> </p></div> <p><!-- .comment-content --></p> <section id='feedback-1076' class='wporg-has-embedded-code feedback hide-if-js' data-comment-count='0'> </section> <p><!-- .feedback --></p> <footer class='feedback-links wporg-dot-link-list'> <a role="button" class="feedback-login" href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%3Freplytocom%3D1076%23feedback-editor-1076" rel="nofollow">Log in to add feedback</a></footer> </article> <p><!-- .comment-body --> </li> <li id="comment-2382" data-comment-id="2382" class="comment byuser comment-author-acuvic odd alt thread-odd thread-alt depth-1"> <article id="div-comment-2382" class="comment-body"> <p> <a href="#comment-content-2382" class="screen-reader-text">Skip to note 6 content</a></p> <header class="comment-meta"> <div class="comment-author vcard"> <span class="comment-author-attribution"><br /> <a href="https://profiles.wordpress.org/acuvic/" rel="external nofollow" class="url">acuvic</a> </span><br /> <a class="comment-date" href="https://developer.wordpress.org/reference/hooks/wp_title/#comment-2382"><br /> <time datetime="2017-09-26T19:24:51+00:00"><br /> 9 years ago </time><br /> </a></p></div> <div class="user-note-voting" data-nonce="37c6c7f66c" data-can-vote="false"><a class="user-note-voting-up" title="You must log in to vote on the helpfulness of this note" data-id="2382" data-vote="up" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-2382"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a><span class="user-note-voting-count " title="100% like this"><span class="screen-reader-text">Vote results for this note: </span>6</span><a class="user-note-voting-down" title="You must log in to vote on the helpfulness of this note" data-id="2382" data-vote="down" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-2382"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a></div> </header> <p> <!-- .comment-metadata --></p> <div class="wporg-has-embedded-code comment-content" id="comment-content-2382"> <p>Just for information, wp_title has been reinstated:<br /> “<em>UPDATE 12 November – wp_title has been reinstated until alternative usages have been identified and a path forward for them defined.</em>”</p> <p>Reference link as originally given by Andrew Klimek above <a href="https://make.wordpress.org/core/2015/10/20/document-title-in-4-4/" rel="nofollow ugc">https://make.wordpress.org/core/2015/10/20/document-title-in-4-4/</a></p> </p></div> <p><!-- .comment-content --></p> <section id='feedback-2382' class='wporg-has-embedded-code feedback hide-if-js' data-comment-count='0'> </section> <p><!-- .feedback --></p> <footer class='feedback-links wporg-dot-link-list'> <a role="button" class="feedback-login" href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%3Freplytocom%3D2382%23feedback-editor-2382" rel="nofollow">Log in to add feedback</a></footer> </article> <p><!-- .comment-body --> </li> <li id="comment-907" data-comment-id="907" class="comment even thread-even depth-1"> <article id="div-comment-907" class="comment-body"> <p> <a href="#comment-content-907" class="screen-reader-text">Skip to note 7 content</a></p> <header class="comment-meta"> <div class="comment-author vcard"> <span class="comment-author-attribution"><br /> <a href="https://profiles.wordpress.org/DrewAPicture" rel="external nofollow" class="url">Drew Jaynes</a> </span><br /> <a class="comment-date" href="https://developer.wordpress.org/reference/hooks/wp_title/#comment-907"><br /> <time datetime="2015-10-22T19:59:07+00:00"><br /> 10 years ago </time><br /> </a></p></div> <div class="user-note-voting" data-nonce="407d740fb2" data-can-vote="false"><a class="user-note-voting-up" title="You must log in to vote on the helpfulness of this note" data-id="907" data-vote="up" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-907"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a><span class="user-note-voting-count " title="80% like this"><span class="screen-reader-text">Vote results for this note: </span>3</span><a class="user-note-voting-down" title="You must log in to vote on the helpfulness of this note" data-id="907" data-vote="down" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-907"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a></div> </header> <p> <!-- .comment-metadata --></p> <div class="wporg-has-embedded-code comment-content" id="comment-content-907"> <p><strong>Basic Example</strong></p> <p><em>In header.php:</em></p> <pre class="wp-block-code hljs language-xml"><code class="wp-block-code hljs language-xml"><span class="hljs-tag"><<span class="hljs-name">title</span>></span><span class="hljs-tag"></<span class="hljs-name">title</span>></span></code></pre> <p><em>In functions.php:</em></p> <pre class="wp-block-code hljs language-php"><code class="wp-block-code hljs language-php"><span class="hljs-comment">/** * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view. * * <span class="hljs-doctag">@param</span> string $title Default title text for current view. * <span class="hljs-doctag">@param</span> string $sep Optional separator. * <span class="hljs-doctag">@return</span> string Filtered title. */</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">wpdocs_filter_wp_title</span><span class="hljs-params">( $title, $sep )</span> </span>{ <span class="hljs-keyword">global</span> $paged, $page; <span class="hljs-keyword">if</span> ( is_feed() ) <span class="hljs-keyword">return</span> $title; <span class="hljs-comment">// Add the site name.</span> $title .= get_bloginfo( <span class="hljs-string">'name'</span> ); <span class="hljs-comment">// Add the site description for the home/front page.</span> $site_description = get_bloginfo( <span class="hljs-string">'description'</span>, <span class="hljs-string">'display'</span> ); <span class="hljs-keyword">if</span> ( $site_description && ( is_home() || is_front_page() ) ) $title = <span class="hljs-string">"$title $sep $site_description"</span>; <span class="hljs-comment">// Add a page number if necessary.</span> <span class="hljs-keyword">if</span> ( $paged >= <span class="hljs-number">2</span> || $page >= <span class="hljs-number">2</span> ) $title = <span class="hljs-string">"$title $sep "</span> . sprintf( __( <span class="hljs-string">'Page %s'</span>, <span class="hljs-string">'twentytwelve'</span> ), max( $paged, $page ) ); <span class="hljs-keyword">return</span> $title; } add_filter( <span class="hljs-string">'wp_title'</span>, <span class="hljs-string">'wpdocs_filter_wp_title'</span>, <span class="hljs-number">10</span>, <span class="hljs-number">2</span> );</code></pre> </p></div> <p><!-- .comment-content --></p> <section id='feedback-907' class='wporg-has-embedded-code feedback hide-if-js' data-comment-count='0'> </section> <p><!-- .feedback --></p> <footer class='feedback-links wporg-dot-link-list'> <a role="button" class="feedback-login" href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%3Freplytocom%3D907%23feedback-editor-907" rel="nofollow">Log in to add feedback</a></footer> </article> <p><!-- .comment-body --> </li> <li id="comment-6494" data-comment-id="6494" class="comment byuser comment-author-rafacarvalhido odd alt thread-odd thread-alt depth-1"> <article id="div-comment-6494" class="comment-body"> <p> <a href="#comment-content-6494" class="screen-reader-text">Skip to note 8 content</a></p> <header class="comment-meta"> <div class="comment-author vcard"> <span class="comment-author-attribution"><br /> <a href="https://profiles.wordpress.org/rafacarvalhido/" rel="external nofollow" class="url">Rafa Carvalhido</a> </span><br /> <a class="comment-date" href="https://developer.wordpress.org/reference/hooks/wp_title/#comment-6494"><br /> <time datetime="2023-06-03T14:00:41+00:00"><br /> 3 years ago </time><br /> </a></p></div> <div class="user-note-voting" data-nonce="78a66a33dd" data-can-vote="false"><a class="user-note-voting-up" title="You must log in to vote on the helpfulness of this note" data-id="6494" data-vote="up" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-6494"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a><span class="user-note-voting-count " title="100% like this"><span class="screen-reader-text">Vote results for this note: </span>2</span><a class="user-note-voting-down" title="You must log in to vote on the helpfulness of this note" data-id="6494" data-vote="down" href="https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%23comment-6494"><span class="screen-reader-text">You must log in to vote on the helpfulness of this note</span></a></div> </header> <p> <!-- .comment-metadata --></p> <div class="wporg-has-embedded-code comment-content" id="comment-content-6494"> <p>Example updated with the third parameter of the filter:</p> <pre class="wp-block-code hljs language-php"><code class="wp-block-code hljs language-php">add_filter( <span class="hljs-string">'wp_title'</span>, <span class="hljs-string">'filter_function_name'</span>, <span class="hljs-number">10</span>, <span class="hljs-number">3</span> ); <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">filter_function_name</span><span class="hljs-params">( $title, $sep, $seplocation )</span> </span>{ <span class="hljs-comment">// the magic</span> <span class="hljs-keyword">return</span> $title; }</code></pre> </p></div> <p><!-- .comment-content --></p> <section id='feedback-6494' class='wporg-has-embedded-code feedback hide-if-js' data-comment-count='0'> </section> <p><!-- .feedback --></p> <footer class='feedback-links wporg-dot-link-list'> <a role="button" class="feedback-login" href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_title%2F%3Freplytocom%3D6494%23feedback-editor-6494" rel="nofollow">Log in to add feedback</a></footer> </article> <p><!-- .comment-body --> </li> </ol> </section> </div> </section> </article> </div> <footer class="site-footer"> <div class="container"> <div class="footer-content"> <div class="footer-info"> <p>© 2026 云策 WordPress 开发者社区(WordPress中文社区)</p> </div> <div class="footer-links"> <ul id="menu-%e5%ba%95%e9%83%a8%e8%8f%9c%e5%8d%95" class="footer-menu"><li id="menu-item-7870" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7870"><a target="_blank" href="https://www.yun-wp.com/">云策 WordPress 建站</a></li> <li id="menu-item-7871" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7871"><a target="_blank" href="https://cn.wordpress.org/">WordPress 中国</a></li> <li id="menu-item-7872" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7872"><a target="_blank" href="https://developer.wordpress.org/">WordPress官方社区</a></li> <li id="menu-item-7866" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-privacy-policy menu-item-7866"><a target="_self" rel="privacy-policy" href="https://developer.yun-wp.com/privacy-policy/">站点声明</a></li> </ul> </div> </div> </div> </footer> <script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/wp-dev-docs/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js?ver=11.9.0" id="highlightjs-js"></script> <script type="text/javascript" src="https://developer.yun-wp.com/wp-content/themes/wp-dev-docs/assets/js/main.js?ver=1.0.0" id="wp-dev-docs-script-js"></script> <script id="wp-emoji-settings" type="application/json"> {"baseUrl":"https://s.w.org/images/core/emoji/17.0.2/72x72/","ext":".png","svgUrl":"https://s.w.org/images/core/emoji/17.0.2/svg/","svgExt":".svg","source":{"concatemoji":"https://developer.yun-wp.com/wp-includes/js/wp-emoji-release.min.js?ver=6.9.4"}} </script> <script type="module"> /* <![CDATA[ */ /*! This file is auto-generated */ const a=JSON.parse(document.getElementById("wp-emoji-settings").textContent),o=(window._wpemojiSettings=a,"wpEmojiSettingsSupports"),s=["flag","emoji"];function i(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function c(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0);const a=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);return t.every((e,t)=>e===a[t])}function p(e,t){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var n=e.getImageData(16,16,1,1);for(let e=0;e<n.data.length;e++)if(0!==n.data[e])return!1;return!0}function u(e,t,n,a){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\udde8\ud83c\uddf6","\ud83c\udde8\u200b\ud83c\uddf6")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!a(e,"\ud83e\u1fac8")}return!1}function f(e,t,n,a){let r;const o=(r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):document.createElement("canvas")).getContext("2d",{willReadFrequently:!0}),s=(o.textBaseline="top",o.font="600 32px Arial",{});return e.forEach(e=>{s[e]=t(o,e,n,a)}),s}function r(e){var t=document.createElement("script");t.src=e,t.defer=!0,document.head.appendChild(t)}a.supports={everything:!0,everythingExceptFlag:!0},new Promise(t=>{let n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),c.toString(),p.toString()].join(",")+"));",a=new Blob([e],{type:"text/javascript"});const r=new Worker(URL.createObjectURL(a),{name:"wpTestEmojiSupports"});return void(r.onmessage=e=>{i(n=e.data),r.terminate(),t(n)})}catch(e){}i(n=f(s,u,c,p))}t(n)}).then(e=>{for(const n in e)a.supports[n]=e[n],a.supports.everything=a.supports.everything&&a.supports[n],"flag"!==n&&(a.supports.everythingExceptFlag=a.supports.everythingExceptFlag&&a.supports[n]);var t;a.supports.everythingExceptFlag=a.supports.everythingExceptFlag&&!a.supports.flag,a.supports.everything||((t=a.source||{}).concatemoji?r(t.concatemoji):t.wpemoji&&t.twemoji&&(r(t.twemoji),r(t.wpemoji)))}); //# sourceURL=https://developer.yun-wp.com/wp-includes/js/wp-emoji-loader.min.js /* ]]> */ </script> </body> </html>