Warning: This function has been deprecated. Use get_author_posts_url() instead.
get_author_link( bool $echo, int $author_id, string $author_nicename = '' )
Returns or Prints link to the author’s posts.
描述
参数
- $echo
-
(bool)
(Required) - $author_id
-
(int)
(Required) - $author_nicename
-
(string)
(Optional)Default value: ”
返回值
(string|null)
源代码
File: wp-includes/deprecated.php
function get_author_link($echo, $author_id, $author_nicename = '') {
_deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' );
$link = get_author_posts_url($author_id, $author_nicename);
if ( $echo )
echo $link;
return $link;
}
更新日志
Version | 描述 |
---|---|
2.1.0 | Use get_author_posts_url() |
1.2.0 | Introduced. |
相关函数
Uses
-
wp-includes/functions.php:
_deprecated_function() -
wp-includes/author-template.php:
get_author_posts_url()
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈