apply_filters( ‘wp_content_img_tag’, string $filtered_image, string $context, int $attachment_id )

In this article

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

Parameters

$filtered_imagestring
Full img tag with attributes that will replace the source img tag.
$contextstring
Additional context, like the current filter name or the function name from where this was called.
$attachment_idint
The image attachment ID. May be 0 in case the image is not an attachment.

Source

$filtered_image = $match[0];

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.