WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about attachment_link

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/link-template.php apply_filters 530 /**
* Filters the permalink for an attachment.
*
* @since 2.0.0
* @since 5.6.0 Providing an empty string will now disable
* the view attachment page link on the media modal.
*
* @param string $link The attachment's permalink.
* @param int $post_id Attachment ID.
*/

Hook Parameters

Parameter Type Name Description
string $link The attachment's permalink.
int $post_id Attachment ID.