comment_author_link_rel
Filters the rel attributes of the comment author's link.
Usage
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.
Changelog
| Since 6.2.0 | Introduced. |
Where the hook is called
comment_author_link_rel
wp-includes/comment-template.php 267
$rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );