previous_posts_link_attributes WordPress Filter Hook
The previous_posts_link_attributes hook is used to modify the attributes of the previous posts link. This is useful for adding a class or id to the link for styling purposes.
apply_filters( 'previous_posts_link_attributes', string $attributes ) #
Filters the anchor tag attributes for the previous posts page link.
Parameters
- $attributes
(string)Attributes for the anchor tag.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |