Filter: tcp get image in content

Description

Allows to add or modify html code when core is displaying the image in the content of products.

Parameters

$image
(String) Html code with the image to display.
$post_id
(Number) Identifier of the product displayed.

Example


function my_tcp_get_image_in_content( $image, $post_id ) {
	//TODO
	return $image;
}
add_action( 'tcp_get_image_in_content', 'my_tcp_get_image_in_content', 10, 2 );

Change Log

Since 1.1.2