Opened 2 years ago
Closed 2 years ago
#60661 closed feature request (worksforme)
add_filter get_post_thumbnail_url is this still open or closed
| Reported by: | pumba101 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 6.4.3 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
I have a website I am working on that requires me to change the featured image returned for custom post_type and I wish I could have a function that Hook into the returned thumbnail_url and point to another url of a custom image.
I saw this issue was raised but I don't see the solution. Anyone can help?
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @pumba101,
get_the_post_thumbnail_url()already includes a filter that can be used for this purpose. See: https://developer.wordpress.org/reference/functions/get_the_post_thumbnail_url/ for more details.If you need additional help, please visit https://wordpress.org/support/forums/ as Trac is used primarily for core development, and not for support.