bloginfo()
bloginfo( string $show = ” ) 显示有关当前网站的信息。Displays infor…
bloginfo( string $show = ” )
显示有关当前网站的信息。
Displays information about the current site.
显示有关当前网站的信息。
Displays information about the current site.
目录锚点:#说明#参数#返回#源码#笔记
说明(Description)
另见
get_bloginfo():获取可能的$show值
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $show | (string) | 可选 | 要显示的站点信息。 |
返回(Return)
无返回值
源码(Source)
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 0.71 | wp-includes/general-template.php:653 | 7 | 1 function |
笔记(Notes)
显示博客标题
如果使用bloginfo作为变量,例如:$url=bloginfo(’url’);它将返回null。这是因为bloginfo()会立即回显结果。因此,如果要将bloginfo()参数用作变量,请使用get_bloginfo()。此函数将结果作为字符串返回。
显示日志说明
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!