previous_posts_link_attributes

previous_posts_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_posts_link_attributes') is found 1 times:

  • /wp-includes/link-template.php line 2677
    2673
    2674
    2675
    2676
    2677
    2678
    2679
    2680
    2681
    2682
    2683
    * @since 2.7.0
     *
     * @param string $attributes Attributes for the anchor tag.
     */
    $attr = apply_filters( 'previous_posts_link_attributes', '' );
     
    return sprintf(
        '<a href="%1$s" %2$s>%3$s</a>',
        previous_posts( false ),
        $attr,
        preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label )

See this hook used in plugins: