end_fetch_post_thumbnail_html хук-событие . WP 2.9.0
Fires after fetching the post thumbnail HTML.
Использование
add_action( 'end_fetch_post_thumbnail_html', 'action_function_name_8792', 10, 3 ); function action_function_name_8792( $post_id, $post_thumbnail_id, $size ){ // action... }
- $post_id(число)
- The post ID.
- $post_thumbnail_id(число)
- The post thumbnail ID.
- $size(строка/число[])
- Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
wp-includes/post-thumbnail-template.php 191
do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );
Где используется хук в ядре WordPress
wp-includes/post-thumbnail-template.php 397
add_action( 'end_fetch_post_thumbnail_html', '_wp_post_thumbnail_class_filter_remove' );