-
StackOverflow 文档
-
WordPress 教程
-
获取 bloginfo()
$秀
| 值 |
描述 |
例 |
| ’name’(默认) |
网站标题 |
'Matt Mullenweg' |
| ‘描述’ |
网站标语 |
'Just another WordPress site' |
| ‘wpurl’ |
WordPress 安装的 URL。与 site_url() 功能相同 |
'http://example.com','http://localhost/wordpress' |
| ‘URL’ |
网站的网址。与 home_url() 功能相同 |
'http://example.com','http://localhost/wordpress' |
| ‘ADMIN_EMAIL’ |
主管理员的电子邮件地址 |
'matt@mullenweg.com' |
| 字符集 |
页面和提要的字符编码 |
'UTF-8' |
| ‘版’ |
当前版本的 WordPress 安装 |
'4.5' |
| ‘html_type’ |
HTML 的内容类型值 |
'text/html' |
| ’text_direction' |
文本方向由网站的语言决定 |
'ltr' |
| ‘语言’ |
基于 ISO 639-1 的语言代码 |
'en-US' |
| ‘stylesheet_url’ |
激活主题的样式表的 URL。价值优先: 儿童主题 »父主题。 |
'http://example.com/wp-content/themes/twentysixteen/style.css' |
| ‘stylesheet_directory’ |
激活主题的资源位置。价值优先: 儿童主题 »父主题。 |
'http://example.com/wp-content/themes/twentysixteen' |
| ’template_url' |
激活主题的 URL 目录。价值优先: 父主题 »儿童主题。 |
'http://example.com/wp-content/themes/twentysixteen' |
| ’template_directory' |
与'template_url'相同 |
|
| ‘pingback_url’ |
Pingback XML-RPC 文件 |
'http://example/xmlrpc.php' |
| ‘atom_url’ |
Atom 供稿网址 |
'http://example/feed/atom/' |
| ‘rdf_url’ |
RDF / RSS 1.0 提要 URL |
'http://example/feed/rdf/' |
| ‘rss_url’ |
RSS 0.92 供稿网址 |
'http://example/feed/rss/' |
| ‘rss2_url’ |
RSS 2.0 提要 URL |
'http://example/feed/' |
| ‘comments_atom_url’ |
注释 Atom 供稿网址 |
'http://example/comments/feed/atom/' |
| ‘SITEURL’ |
(已弃用) 请改用 url |
|
| ‘家’ |
(已弃用) 请改用 url |
|
$过滤器
| 值 |
描述 |
例 |
| ‘raw’(默认) |
不会应用过滤器 |
原始数据 |
| ‘显示’ |
如果 $show 既不是'url',也不是'directory','home',则过滤器将应用于返回值 |
过滤数据 |