get_media_embedded_in_content


get_media_embedded_in_content ( $content, $types = null )

Parameters:
  • (string) $content A string which might contain media data.
  • (array) $types An array of media types: 'audio', 'video', 'object', 'embed', or 'iframe'.
Returns:
  • (array) A list of found HTML media embeds.
Defined at:

Description

Check the content blob for an audio, video, object, embed, or iframe tags.

Related Functions

get_url_in_content, get_media_item, get_theme_starter_content, get_media_items, get_the_content

Top Google Results

User discussions

wpseek mobile