comments_popup_link_attributes
Filters the comments link attributes for display.
Usage
add_filter( 'comments_popup_link_attributes', 'wp_kama_comments_popup_link_attributes_filter' );
/**
* Function for `comments_popup_link_attributes` filter-hook.
*
* @param string $link_attributes The comments link attributes.
*
* @return string
*/
function wp_kama_comments_popup_link_attributes_filter( $link_attributes ){
// filter...
return $link_attributes;
}
- $link_attributes(string)
- The comments link attributes.
Default: ''
Changelog
| Since 2.5.0 | Introduced. |
Where the hook is called
comments_popup_link_attributes
wp-includes/comment-template.php 1712
$link_attributes = apply_filters( 'comments_popup_link_attributes', $link_attributes );