media_embedded_in_content_allowed_types

media_embedded_in_content_allowed_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('media_embedded_in_content_allowed_types') is found 1 times:

  • /wp-includes/media.php line 5129
    	 *
    	 * @param string[] $allowed_media_types An array of allowed media types. Default media types are
    	 *                                      'audio', 'video', 'object', 'embed', and 'iframe'.
    	 */
    	$allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) );
    
    	if ( ! empty( $types ) ) {
    		if ( ! is_array( $types ) ) {
    			$types = array( $types );
    		}