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



post_thumbnail_url › WordPress过滤钩子

Since5.9.0
已弃用n/a
apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size )
参数: (3)
  • (string|false) $thumbnail_url Post thumbnail URL 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
  • (string|int[]) $size Registered image size to retrieve the source for or a flat array of height and width dimensions. Default 'post-thumbnail'.
    Required: Yes
定义在:
文档:

Filters the post thumbnail URL.





源码

return apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size );