wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_the_author › WordPress Function
Since1.5.0
已弃用n/a
› get_the_author ( $deprecated = '' )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: | |
| Change Log: |
|
Retrieves the author of the current post.
Related Functions: get_the_author_id, get_the_author_aim, get_the_author_icq, get_the_author_msn, get_the_author_url
源码
function get_the_author( $deprecated = '' ) {
global $authordata;
if ( ! empty( $deprecated ) ) {
_deprecated_argument( __FUNCTION__, '2.1.0' );
}
/**
* Filters the display name of the current post's author.
*
* @since 2.9.0
*
* @param string $display_name The author's display name.
*/
return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : '' );
}