next_posts_link_attributes WordPress Filter Hook

The next_posts_link_attributes hook allows you to add custom attributes to the next posts link. This can be useful for adding data- attributes for use with JavaScript, or for adding classes for use with CSS.

apply_filters( 'next_posts_link_attributes', string $attributes ) #

Filters the anchor tag attributes for the next 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