如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款
get_the_author_meta( string $field = '', int|false $user_id = false )
Retrieves the requested data of the author of the current post.
描述
Valid values for the $field parameter include:
- admin_color
- aim
- comment_shortcuts
- description
- display_name
- first_name
- ID
- jabber
- last_name
- nickname
- plugins_last_view
- plugins_per_page
- rich_editing
- syntax_highlighting
- user_activation_key
- user_description
- user_email
- user_firstname
- user_lastname
- user_level
- user_login
- user_nicename
- user_pass
- user_registered
- user_status
- user_url
- yim
参数
- $field
(string)
(Optional)
The user field to retrieve.
Default value: ''
- $user_id
(int|false)
(Optional)
User ID.
Default value: false
返回
(string) The author's field from the current author's DB object, otherwise an empty string.