next_comments_link_attributes

next_comments_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_comments_link_attributes') is found 1 times:

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

See this hook used in plugins: