get_the_author_link()
Retrieve either author's link or author's name.
If the author has a home page set, return an HTML link, otherwise just return the author's name.
Used By: the_author_link()
Hooks from the function
Return
String|null
. An HTML link if the author's url exist in user meta, else the result of get_the_author().
Usage
get_the_author_link();
Notes
- Global. WP_User. $authordata The current author's data.
Changelog
Since 3.0.0 | Introduced. |