previous_comments_link_attributes

previous_comments_link_attributes

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('previous_comments_link_attributes') is found 1 times:

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

See this hook used in plugins: