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

Checks the HTML content for an audio, video, object, embed, or iframe tags.

Related Functions

get_url_in_content, get_media_item, get_comment_delimited_block_content, get_media_items, get_shortcode_tags_in_content

Top Google Results

User discussions

wpseek mobile