get_author_link()WP 1.2.0

Устарела с версии 2.1.0. Больше не поддерживается и может быть удалена. Используйте get_author_posts_url().

Returns or Prints link to the author's posts.

Хуков нет.

Возвращает

Строку|null.

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

get_author_link( $display, $author_id, $author_nicename );
$display(true|false) (обязательный)
-
$author_id(int) (обязательный)
-
$author_nicename(строка)
Optional.
По умолчанию: ''

Заметки

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

С версии 1.2.0 Введена.
Устарела с 2.1.0 Use get_author_posts_url()

Код get_author_link() WP 6.5.2

function get_author_link($display, $author_id, $author_nicename = '') {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' );

	$link = get_author_posts_url($author_id, $author_nicename);

	if ( $display )
		echo $link;
	return $link;
}