Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28461, comment 5


Ignore:
Timestamp:
04/18/2016 10:17:36 AM (8 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28461, comment 5

    initial v1  
    1 This appears to be rather plugin territory to me.
     1This appears to be rather plugin/theme territory to me.
    22
    33What would be useful however to make this possible in a plugin is that we could add a new filter `get_post_thumbnail_id` inside the function of the same name. This would allow to override the post thumbnail - not actually setting it though, but it would allow to add a fallback in the frontend. We could also limit this filter to only be executed if there is no actual featured image for that post.