From 34a7cdf926105c218e9c8516ffbfa653a76306d4 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 20 Mar 2015 19:28:30 +0000 Subject: [PATCH] Add hook documentation for the `get_media_embedded_in_content_allowed` filter, introduced in [31574]. Props valendesigns. Fixes #26675. git-svn-id: https://develop.svn.wordpress.org/trunk@31851 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index a9965651f9..282e68a0c5 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -3221,6 +3221,14 @@ function get_attached_media( $type, $post = 0 ) { function get_media_embedded_in_content( $content, $types = null ) { $html = array(); + /** + * Filter the embedded media types that are allowed to be returned from the content blob. + * + * @since 4.2.0 + * + * @param array $allowed_media_types An array of allowed media types. Default media types are + * 'audio', 'video', 'object', 'embed', and 'iframe'. + */ $allowed_media_types = apply_filters( 'get_media_embedded_in_content_allowed', array( 'audio', 'video', 'object', 'embed', 'iframe' ) ); if ( ! empty( $types ) ) {