wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



has_post_thumbnail › Les Filtres WordPress

Depuis5.1.0
Dépréciéen/a
› apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id )
Paramètres: (3)
  • () has_thumbnail true if the post has a post thumbnail, otherwise false.
    Requis: Oui
  • () post Post ID or WP_Post object. Default is global `$post`.
    Requis: Oui
  • () thumbnail_id Post thumbnail ID or false if the post does not exist.
    Requis: Oui
Défini(e) dans:
Codex:

Filters whether a post has a post thumbnail.





Source

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