Title: previous_posts_link_attributes
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘previous_posts_link_attributes’, string $attributes )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#wp--skip-link--target)

Filters the anchor tag attributes for the previous posts page link.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#parameters)󠁿

 `$attributes`string

Attributes for the anchor tag.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#source)󠁿

    ```php
    $attr = apply_filters( 'previous_posts_link_attributes', '' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/link-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/link-template.php#L2686)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/link-template.php#L2686-L2686)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#related)󠁿

| Used by | Description | 
| [get_previous_posts_link()](https://developer.wordpress.org/reference/functions/get_previous_posts_link/)`wp-includes/link-template.php` |

Retrieves the previous posts page link.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/previous_posts_link_attributes/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.7.0](https://developer.wordpress.org/reference/since/2.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fprevious_posts_link_attributes%2F)
before being able to contribute a note or feedback.