get_the_author_posts_link() WP 1.0
Retrieves an HTML link to the author page of the current post's author.
Returns an HTML-formatted link using get_author_posts_url().
Works based on: get_author_posts_url(), get_the_author()
Basis of: the_author_posts_link()
1 time = 0.014242s = extremely slow | 50000 times = 5.91s = fast | PHP 7.1.11, WP 4.9.8
Hooks from the function
Return
String. An HTML link to the author page, or an empty string if $authordata isn't defined.
Usage
get_the_author_posts_link();
Notes
- Global. WP_User. $authordata The current author's data.
Changelog
Since 4.4.0 | Introduced. |
Code of get_the_author_posts_link() get the author posts link WP 5.6
Related Functions
From tag: Archive pages
More from tag: Link (tag A in HTML)
More from category: Other
- auth_redirect()
- count_many_users_posts()
- count_user_posts()
- count_users()
- email_exists()
- get_author_posts_url()
- get_current_user_id()
- get_editable_roles()
- get_the_author()