comment_author_link_rel хук-фильтрWP 6.2.0

Filters the rel attributes of the comment author's link.

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

add_filter( 'comment_author_link_rel', 'wp_kama_comment_author_link_rel_filter', 10, 2 );

/**
 * Function for `comment_author_link_rel` filter-hook.
 * 
 * @param string[]   $rel_parts An array of strings representing the rel tags which will be joined into the anchor's rel attribute.
 * @param WP_Comment $comment   The comment object.
 *
 * @return string[]
 */
function wp_kama_comment_author_link_rel_filter( $rel_parts, $comment ){

	// filter...
	return $rel_parts;
}
$rel_parts(string[])
An array of strings representing the rel tags which will be joined into the anchor's rel attribute.
$comment(WP_Comment)
The comment object.

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

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

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

get_comment_author_link()
comment_author_link_rel
wp-includes/comment-template.php 255
$rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );

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

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