wp_get_attachment_link

wp_get_attachment_link

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_get_attachment_link') is found 1 times:

  • /wp-includes/post-template.php line 1705
    1701
    1702
    1703
    1704
    1705
    1706
    1707
    1708
    1709
    1710
    1711
         * @param bool         $icon      Whether to include an icon.
         * @param string|false $text      If string, will be link text.
         * @param array|string $attr      Array or string of attributes.
         */
        return apply_filters( 'wp_get_attachment_link', $link_html, $post, $size, $permalink, $icon, $text, $attr );
    }
     
    /**
     * Wraps attachment in paragraph tag before content.
     *
     * @since 2.0.0

See this hook used in plugins: