WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

get_comment_author_url_link() WP 1.5.0

Retrieves the HTML link of the url of the author of the current comment.

$linktext parameter is only used if the URL does not exist for the comment author. If the URL does exist then the URL will be used and the $linktext will be ignored.

Encapsulate the HTML link between the $before and $after. So it will appear in the order of $before, link, and finally $after.

Хуки из функции

Строку. The HTML link between the $before and $after parameters.


get_comment_author_url_link( $linktext, $before, $after, $comment );
The text to display instead of the comment author's email address.
По умолчанию: ''
The text or HTML to display before the email link.
По умолчанию: ''
The text or HTML to display after the email link.
По умолчанию: ''
Comment ID or WP_Comment object.
По умолчанию: current comment

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

С версии 1.5.0 Введена.
С версии 4.6.0 Added the $comment parameter.

Код get comment author url link: wp-includes/comment-template.php WP 5.3

function get_comment_author_url_link( $linktext = '', $before = '', $after = '', $comment = 0 ) {
	$url     = get_comment_author_url( $comment );
	$display = ( $linktext != '' ) ? $linktext : $url;
	$display = str_replace( 'http://www.', '', $display );
	$display = str_replace( 'http://', '', $display );

	if ( '/' == substr( $display, -1 ) ) {
		$display = substr( $display, 0, -1 );

	$return = "$before<a href='$url' rel='external'>$display</a>$after";

	 * Filters the comment author's returned URL link.
	 * @since 1.5.0
	 * @param string $return The HTML-formatted comment author URL link.
	return apply_filters( 'get_comment_author_url_link', $return );