-
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',則過濾器將應用於返回值 |
過濾資料 |