get_the_generator()
get_the_generator( string $type = ” )
为RSS、ATOM等创建生成器XML或注释。
Creates the generator XML or Comment for RSS, ATOM, etc.
说明(Description)
为请求的输出格式返回正确的生成器类型。允许一个插件使用“getu theu generatoru$type”过滤器逐个筛选生成器。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$type | (string) | 可选 | 要返回的生成器类型—(html | xhtml | atom | rss2 | rdf | comment | export)。 |
返回(Return)
(string|void)生成器的HTML内容。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-includes/general-template.php:4560 | 1 function | 7 |
get_the_generator() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_the_generator/