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:

Description

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

Related Functions

get_url_in_content, get_media_item, get_comment_delimited_block_content, get_theme_starter_content, get_the_content

Top Google Results

User discussions

wpseek mobile