begin_fetch_post_thumbnail_html

The WordPress Core begin fetch post thumbnail html hook.

Description

add_action( 'begin_fetch_post_thumbnail_html', (string) $wp_post_thumbnail_class_filter_add ); 

Parameters (1)

0. $wp_post_thumbnail_class_filter_add (string) => '_wp_post_thumbnail_class_filter_add'
The wp post thumbnail class filter add.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'begin_fetch_post_thumbnail_html', $wp_post_thumbnail_class_filter_add ); 
The following example is for adding a hook callback.
  1. // define the begin_fetch_post_thumbnail_html callback 
  2. function action_begin_fetch_post_thumbnail_html( $wp_post_thumbnail_class_filter_add ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'begin_fetch_post_thumbnail_html', 'action_begin_fetch_post_thumbnail_html', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'begin_fetch_post_thumbnail_html', 'action_begin_fetch_post_thumbnail_html', 10, 1 ); 

Defined (2)

The action is defined in the following location(s).

/wp-includes/default-filters.php  
  1. add_action( 'begin_fetch_post_thumbnail_html', '_wp_post_thumbnail_class_filter_add' ); 
/wp-includes/post-thumbnail-template.php  
  1. do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );