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.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More