apply_filters( 'wp_get_attachment_link_attributes', array $attributes, int $id )

Filters the list of attachment link attributes.


Parameters

$attributes array
An array of attributes for the link markup, keyed on the attribute name.
$id int
Post ID.

Top ↑

Source

File: wp-includes/post-template.php. View all references

$attributes = apply_filters( 'wp_get_attachment_link_attributes', array( 'href' => $url ), $_post->ID );


Top ↑

Changelog

Changelog
Version Description
6.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.