wp_content_img_tag

wp_content_img_tag

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.0.1

apply_filters('wp_content_img_tag') is found 1 times:

  • /wp-includes/media.php line 1855
    			 * @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.
    			 */
    			$filtered_image = apply_filters( 'wp_content_img_tag', $filtered_image, $context, $attachment_id );
    
    			if ( $filtered_image !== $match[0] ) {
    				$content = str_replace( $match[0], $filtered_image, $content );
    			}
    
    			/*