end_fetch_post_thumbnail_html action-hook . WP 2.9.0
Fires after fetching the post thumbnail HTML.
Usage
add_action( 'end_fetch_post_thumbnail_html', 'action_function_name_3549', 10, 3 ); function action_function_name_3549( $post_id, $post_thumbnail_id, $size ){ // action... }
- $post_id(int)
- The post ID.
- $post_thumbnail_id(int)
- The post thumbnail ID.
- $size(string/int[])
- Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
wp-includes/post-thumbnail-template.php 191
do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );
Where in WP core the hook is used WordPress
wp-includes/post-thumbnail-template.php 397
add_action( 'end_fetch_post_thumbnail_html', '_wp_post_thumbnail_class_filter_remove' );