Changes between Initial Version and Version 3 of Ticket #57760
- Timestamp:
- 05/04/2023 02:35:02 PM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57760
-
Property
Component
changed from
General
toMedia
-
Property
Component
changed from
-
Ticket #57760 – Description
initial v3 1 1 We are making plugin for featured image using external url. 2 2 3 If user gt featured image url via wp_get_attachment_url() there is no way for us to hook because 'wp_get_attachment_url'hook will never called if the post is not 'attachment'. The only way for us to make it work via creating fake attachment which is complicated.3 If user gt featured image url via `wp_get_attachment_url()` there is no way for us to hook because `wp_get_attachment_url` hook will never called if the post is not 'attachment'. The only way for us to make it work via creating fake attachment which is complicated. 4 4 5 'pre_wp_get_attachment_url'filter will be very helpful in this case.5 `pre_wp_get_attachment_url` filter will be very helpful in this case.