Un motore di ricerca WordPress per sviluppatori e autori di temi



has_post_thumbnail ›

Da5.1.0
Deprecaton/a
apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id )
Parametri: (3)
  • (bool) $has_thumbnail true if the post has a post thumbnail, otherwise false.
    Richiesto:
  • (int|WP_Post|null) $post Post ID or WP_Post object. Default is global `$post`.
    Richiesto:
  • (int|string) $thumbnail_id Post thumbnail ID or empty string.
    Richiesto:
Definito a:
Codex:

Filters whether a post has a post thumbnail.





Sorgenti

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