end_fetch_post_thumbnail_html

动作钩子
do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size )
参数
  • (int) $post_id The post ID.
    Required:
  • (int) $post_thumbnail_id The post thumbnail ID.
    Required:
  • (string|int[]) $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required:
定义位置
相关勾子
begin_fetch_post_thumbnail_htmlpost_thumbnail_htmladmin_post_thumbnail_htmlthe_post_thumbnail_captionpost_thumbnail_url
相关方法
_wp_post_thumbnail_htmlwp_ajax_get_post_thumbnail_htmlthe_post_thumbnail_urlget_the_post_thumbnail_urldelete_post_thumbnailthe_post_thumbnail
引入
2.9.0
弃用
-

end_fetch_post_thumbnail_html是WordPress中的一个过滤器钩子,用来修改一个文章缩略图被获取后的HTML。该过滤器被应用于fetch_post_thumbnail_html函数的HTML输出,该函数为一个文章的特色图片生成HTML。

获取缩略图后的HTML后触发。

do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );

常见问题

FAQs
查看更多 >