apply_filters( ‘media_embedded_in_content_allowed_types’, string[] $allowed_media_types )

In this article

Filters the embedded media types that are allowed to be returned from the content blob.

Parameters

$allowed_media_typesstring[]
An array of allowed media types. Default media types are 'audio', 'video', 'object', 'embed', and 'iframe'.

Source

$allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) );

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

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