the_author_link хук-фильтрWP 6.0.0

Filters the author URL link HTML.

Использование

add_filter( 'the_author_link', 'wp_kama_the_author_link_filter', 10, 3 );

/**
 * Function for `the_author_link` filter-hook.
 * 
 * @param string  $link       The default rendered author HTML link.
 * @param string  $author_url Author's URL.
 * @param WP_User $authordata Author user data.
 *
 * @return string
 */
function wp_kama_the_author_link_filter( $link, $author_url, $authordata ){

	// filter...
	return $link;
}
$link(строка)
The default rendered author HTML link.
$author_url(строка)
Author's URL.
$authordata(WP_User)
Author user data.

Список изменений

С версии 6.0.0 Введена.

Где вызывается хук

get_the_author_link()
the_author_link
wp-includes/author-template.php 257
return apply_filters( 'the_author_link', $link, $author_url, $authordata );

Где используется хук в WordPress

Использование не найдено.