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
This commit is contained in:
parent
490fb1bf52
commit
34a7cdf926
@ -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…
x
Reference in New Issue
Block a user