wpseek.com
WordPress开发者和主题制作者的搜索引擎



post_thumbnail_id › WordPress过滤钩子

Since5.9.0
已弃用n/a
apply_filters( 'post_thumbnail_id', $thumbnail_id, $post )
参数: (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
定义在:
文档:

Filters the post thumbnail ID.





源码

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