get_media_embedded_in_content

Advertisement

Summery Summery

Check the content HTML for a audio, video, object, embed, or iframe tags.

Syntax Syntax

get_media_embedded_in_content( string $content, string[] $types = null )

Parameters Parameters

$content

(string) (Required) A string of HTML which might contain media elements.

$types

(string[]) (Optional) An array of media types: 'audio', 'video', 'object', 'embed', or 'iframe'.

Default value: null

Return Return

(string[]) Array of found HTML media elements.

Source Source

File: wp-includes/media.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.