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

(string) The attachment's permalink.

$post_id

(int) Attachment ID.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.