钩子文档

embed_site_title_html

💡 云策文档标注

概述

embed_site_title_html 是一个 WordPress 过滤器钩子,用于修改嵌入页脚中的站点标题 HTML 输出。

关键要点

  • 这是一个过滤器钩子,允许开发者自定义嵌入模板中站点标题的 HTML 内容。
  • 参数为 $site_title,类型为字符串,代表原始的站点标题 HTML。
  • 通过 apply_filters 调用,位于 wp-includes/embed.php 文件中。
  • 与 the_embed_site_title() 函数相关,该函数在嵌入模板中打印站点标题的标记。
  • 自 WordPress 4.4.0 版本引入。

📄 原文内容

Filters the site title HTML in the embed footer.

Parameters

$site_titlestring
The site title HTML.

Source

echo apply_filters( 'embed_site_title_html', $site_title );

Changelog

Version Description
4.4.0 Introduced.