attachment_link

Advertisement

Summery Summery

Filters the permalink for an attachment.

Syntax Syntax

apply_filters( 'attachment_link', string $link, int $post_id )

Parameters Parameters

$link

The attachment's permalink.

$post_id

Attachment ID.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply