apply_filters( 'next_posts_link_attributes', string $attributes )
Filters the anchor tag attributes for the next posts page link.
Description Description
Parameters Parameters
- $attributes
-
(string) Attributes for the anchor tag.
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
If you want to add classes to next posts page link, you can use this hook.
function my_theme_posts_link_attributes() { return 'class="btn btn-primary"'; } add_filter('next_posts_link_attributes', 'my_theme_posts_link_attributes');