begin_fetch_post_thumbnail_html

动作钩子


do_action( 'begin_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:
定义位置
  • wp-includes/post-thumbnail-template.php
    , line 183
引入
2.9.0
弃用

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 );