previous_comments_link_attributes filter-hook . WP 2.7.0
Filters the anchor tag attributes for the previous comments page link.
Usage
add_filter( 'previous_comments_link_attributes', 'filter_function_name_1150' ); function filter_function_name_1150( $attributes ){ // filter... return $attributes; }
- $attributes(string)
- Attributes for the anchor tag.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
previous_comments_link_attributes
wp-includes/link-template.php 2971
return '<a href="' . esc_url( get_comments_pagenum_link( $prevpage ) ) . '" ' . apply_filters( 'previous_comments_link_attributes', '' ) . '>' . preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&$1', $label ) . '</a>';