attachment_link

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('attachment_link') is found 1 times:

  • /wp-includes/link-template.php line 534
    	 *
    	 * @param string $link    The attachment's permalink.
    	 * @param int    $post_id Attachment ID.
    	 */
    	return apply_filters( 'attachment_link', $link, $post->ID );
    }
    
    /**
     * Retrieves the permalink for the year archives.
     *
     * @since 1.5.0
    

See this hook used in plugins: