apply_filters( 'media_embedded_in_content_allowed_types', string[] $allowed_media_types )

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

Parameters

$allowed_media_types

(string[]) An array of allowed media types. Default media types are 'audio', 'video', 'object', 'embed', and 'iframe'.

Source

File: wp-includes/media.php

View on Trac

Changelog

Version Description
4.2.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/media_embedded_in_content_allowed_types