鱼见海资源网最新教程:
介绍
the_author_meta() 显示用户资料的函数,如果该函数在 the_loop 中,那么将显示loop中的用户资料,如果在 the_loop 之外使用,必须指定用户ID才能输出内容。
使用
参数
$field
(string) Field name for the data item to be displayed. Valid values:
- user_login
- user_pass
- user_nicename
- user_email
- user_url
- user_registered
- user_activation_key
- user_status
- display_name
- nickname
- first_name
- last_name
- description
- jabber
- aim
- yim
- user_level
- user_firstname
- user_lastname
- user_description
- rich_editing
- comment_shortcuts
- admin_color
- plugins_per_page
- plugins_last_view
- ID
$userID
(integer) (optional) If the user ID fields is used, then this function display the specific field for this user ID.
Default: false
示例
显示作者的 AIM。
This author's AIM address is
显示指定用户的 Email 地址。
The email address for user id 25 is
文章来源于互联网
© 版权声明
温馨提示:本站知识付费,提供的一切软件、教程和内容信息都来自网络收集整理,仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,版权争议与本站无关。用户必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!
THE END
暂无评论内容