Uma área de pesquisa sobre o WordPress para devs e autores do tema



has_post_thumbnail ›

Desde5.1.0
Obsoleton/a
apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id )
Parâmetros: (3)
  • (bool) $has_thumbnail true if the post has a post thumbnail, otherwise false.
    Required: Yes
  • (int|WP_Post|null) $post Post ID or WP_Post object. Default is global `$post`.
    Required: Yes
  • (int|string) $thumbnail_id Post thumbnail ID or empty string.
    Required: Yes
Definido em:
Codex:

Filters whether a post has a post thumbnail.





Fonte

return (bool) apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id );