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



post_thumbnail_id › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'post_thumbnail_id', $thumbnail_id, $post )
Parameters: (2)
  • (int|false) $thumbnail_id Post thumbnail ID 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
Defined at:
Codex:

Filters the post thumbnail ID.





Source

return (int) apply_filters( 'post_thumbnail_id', $thumbnail_id, $post );