amp_native_img_used

apply_filters( 'amp_native_img_used',  bool $use_native )

Description #

Filters whether to use the native img element rather than convert to amp-img.

This filter is a feature flag to opt-in to discontinue using amp-img (and amp-anim) which will be deprecated in AMP in the near future. Once this lands in AMP, this filter will switch to defaulting to true instead of false.


Parameters #

$use_native

(bool) Whether to use `img`.



Changelog #

Changelog
Version Description
2.2 Introduced.