Core Function
View Source on Trac ↗ get_media_embedded_in_content()
get_media_embedded_in_content( mixed $content, mixed $types = null ) Checks the HTML content for an audio, video, object, embed, or iframe tags.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $content string | A string of HTML which might contain media elements. Required |
| $types string[] | An array of media types: 'audio', 'video', 'object', 'embed', or 'iframe'. |
Return Value
(string[])
Array of found HTML media elements.
Function Information
Since Version
3.6.0
Source File
wp-includes/media.php
Advertisement