get_media_embedded_in_content
get_media_embedded_in_content ( $content, $types = null )
Parameters:- (string) content A string of HTML which might contain media elements.
- (string[]) types An array of media types: 'audio', 'video', 'object', 'embed', or 'iframe'.
Returns:- (string[]) Array of found HTML media elements.
Defined at: - Introduced in WordPress: 3.6.0
- Deprecated in WordPress: —
Description
Checks the HTML content for an audio, video, object, embed, or iframe tags.