[wp-trac] [WordPress Trac] #22075: Allow custom attributes to be set in `wp_get_attachment_link`

WordPress Trac noreply at wordpress.org
Mon Sep 15 13:39:35 UTC 2025


#22075: Allow custom attributes to be set in `wp_get_attachment_link`
-------------------------+-------------------------
 Reporter:  webord       |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Media        |     Version:  3.4
 Severity:  normal       |  Resolution:  worksforme
 Keywords:               |     Focuses:
-------------------------+-------------------------
Changes (by mindctrl):

 * keywords:  dev-feedback has-patch needs-refresh needs-unit-tests close =>
 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Hi all, as Callum pointed out above, there's now a filter in this function
 that allows customizing the attributes. It looks like we can close this
 ticket now.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/22075#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list