• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Hooks / begin_fetch_post_thumbnail_html – action

Fires before fetching the post thumbnail HTML. Provides “just in time” filtering of all filters in wp_get_attachment_image().

Parameters

.
( 2.9.0 ) . .
( int ) $post_id The post ID. . . .
( int ) $post_thumbnail_id 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). . . .
Hook name: begin_fetch_post_thumbnail_html
Hook type: action
Plugin ref: WordPress
Sourcefile:
File ref: get_the_post_thumbnail() – Retrieve the post thumbnail.
Description: Fires before fetching the post thumbnail HTML. Provides “just in time” filtering of all filters in wp_get_attachment_image().
Parameters:
Deprecated?: No
API Letters: B,F,H,P,T

Invokers

1 to 1 of 1
  • get_the_post_thumbnail() – Retrieve the post thumbnail.

Implementers

    Published: 25th November 2019 | Last updated: 9th December 2020

    Primary Sidebar

    Information

    Hook name: begin_fetch_post_thumbnail_html
    Hook type: action
    Plugin ref: WordPress
    Sourcefile:
    File ref: get_the_post_thumbnail() – Retrieve the post thumbnail.
    Description: Fires before fetching the post thumbnail HTML. Provides "just in time" filtering of all filters in wp_get_attachment_image().
    Parameters:
    Deprecated?: No
    API Letters: B,F,H,P,T

    Footer

    WP-a2z
    WordPress core a2z
    WordPress core only
    WordPress 5.6
    WordPress a2z
    WordPress core a2z
    Genesis Theme Framework a2z
    Jetpack a2z
    WordPress develop tests
    Easy Digital Downloads a2z
    WooCommerce a2z
    Yoast SEO a2z
    WordPress Blocks

    Site:  core.wp-a2z.org
    © Copyright WP-a2z 2014-2021. All rights reserved.


    Website designed and developed by Herb Miller
    Proudly powered by WordPress and oik plugins

    • Home
    • Blog
    • Sitemap
    • Sites