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



begin_fetch_post_thumbnail_html › WordPress动作钩子

Since2.9.0
已弃用n/a
do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size )
参数: (3)
  • (int) $post_id The post ID.
    Required: Yes
  • (int) $post_thumbnail_id The post thumbnail ID.
    Required: Yes
  • (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: Yes
定义在:
文档:

Fires before fetching the post thumbnail HTML.

Provides "just in time" filtering of all filters in wp_get_attachment_image().





源码

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