wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
get_the_author_posts_link › WordPress Function
Desde4.4.0
Obsoleton/a
› get_the_author_posts_link ( Sem parâmetros )
Retorna: |
|
Definido em: |
|
Codex: |
Retrieves an HTML link to the author page of the current post's author.
Returns an HTML-formatted link using get_author_posts_url().Funções relacionadas: the_author_posts_link, get_the_author_posts, get_the_author_link, get_author_rss_link, get_author_posts_url
Fonte
function get_the_author_posts_link() { global $authordata; if ( ! is_object( $authordata ) ) { return ''; } $link = sprintf( '<a href="%1$s" title="%2$s" rel="author">%3$s</a>', esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), /* translators: %s: Author's display name. */ esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); /** * Filters the link to the author page of the author of the current post. * * @since 2.9.0 * * @param string $link HTML link. */ return apply_filters( 'the_author_posts_link', $link ); }