wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



has_post_thumbnail › Filtr WordPress Hooks

Od5.1.0
Przestarzałyn/a
apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id )
Parametry: (3)
  • (bool) $has_thumbnail true if the post has a post thumbnail, otherwise false.
    Wymagane: Tak
  • (int|WP_Post|null) $post Post ID or WP_Post object. Default is global `$post`.
    Wymagane: Tak
  • (int|false) $thumbnail_id Post thumbnail ID or false if the post does not exist.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether a post has a post thumbnail.





Źródło

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