Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #57760


Ignore:
Timestamp:
05/04/2023 02:35:02 PM (11 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57760

    • Property Component changed from General to Media
  • Ticket #57760 – Description

    initial v3  
    11We are making plugin for featured image using external url.
    22
    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.
     3If 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.
    44
    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.