On this page
apply_filters( 'previous_comments_link_attributes', string $attributes )
Filters the anchor tag attributes for the previous comments page link.
Parameters
$attributesstring-
Attributes for the anchor tag.
Source
File: wp-includes/link-template.php. View all references
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>';
Related
Used By
| Used By | Description |
|---|---|
| get_previous_comments_link() wp-includes/link-template.php | Retrieves the link to the previous comments page. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/previous_comments_link_attributes