wpseek.com
A WordPress-centric search engine for devs and theme authors



post_thumbnail_url › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size )
Parameters: (3)
  • (string|false) $thumbnail_url Post thumbnail URL or false if the post does not exist.
    Required: Yes
  • (int|WP_Post|null) $post Post ID or WP_Post object. Default is global `$post`.
    Required: Yes
  • (string|int[]) $size Registered image size to retrieve the source for or a flat array of height and width dimensions. Default 'post-thumbnail'.
    Required: Yes
Defined at:
Codex:

Filters the post thumbnail URL.





Source

return apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size );