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.7.2

apply_filters('previous_comments_link_attributes') is found 1 times:

  • /wp-includes/link-template.php line 3219
    3215
    3216
    3217
    3218
    3219
    3220
    3221
    3222
    3223
    3224
    3225
    * @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: