Filter hook 'wp_content_img_tag'

in WP Core File wp-includes/media.php at line 1925

Description

Filters an img tag within the content for a given context.

Occurrences

Filename Line Number
wp-includes/media.php 1925

Parameters

Type Name Description
string $filtered_image Full img tag with attributes that will replace the source img tag.
string $context Additional context, like the current filter name or the function name from where this was called.
int $attachment_id The image attachment ID. May be 0 in case the image is not an attachment.

PHP Doc

/**
			 * Filters an img tag within the content for a given context.
			 *
			 * @since 6.0.0
			 *
			 * @param string $filtered_image Full img tag with attributes that will replace the source img tag.
			 * @param string $context        Additional context, like the current filter name or the function name from where this was called.
			 * @param int    $attachment_id  The image attachment ID. May be 0 in case the image is not an attachment.
			 */