Add hook documentation for the `get_media_embedded_in_content_allowed` filter, introduced in [31574].
Props valendesigns. Fixes #26675. Built from https://develop.svn.wordpress.org/trunk@31851 git-svn-id: http://core.svn.wordpress.org/trunk@31830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e2c7f8d96e
commit
9c1283b28f
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in New Issue