next_posts_link_attributes

next_posts_link_attributes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('next_posts_link_attributes') is found 1 times:

  • /wp-includes/link-template.php line 2584
    		 * @since 2.7.0
    		 *
    		 * @param string $attributes Attributes for the anchor tag.
    		 */
    		$attr = apply_filters( 'next_posts_link_attributes', '' );
    
    		return sprintf(
    			'<a href="%1$s" %2$s>%3$s</a>',
    			next_posts( $max_page, false ),
    			$attr,
    			preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label )
    

See this hook used in plugins: