Description
Filters the permalink for an attachment. the view attachment page link on the media modal.
Occurrences
Filename | Line Number |
---|---|
wp-includes/link-template.php | 534 |
Parameters
Type | Name | Description |
---|---|---|
string | $link | The attachment's permalink. |
int | $post_id | Attachment ID. |
PHP Doc
/**
* 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.
*/