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

apply_filters('wp_get_attachment_link') is found 1 times:

  • /wp-includes/post-template.php line 1705
    	 * @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: