_oembed_filter_feed_content

Prepare the oembed HTML to be displayed in an RSS feed.

Description

(string) _oembed_filter_feed_content( (string) $content ); 

Returns (string)

The filtered content.

Parameters (1)

0. $content (string)
The content to filter.

Usage

  1. if ( !function_exists( '_oembed_filter_feed_content' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4. // The content to filter. 
  5. $content = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = _oembed_filter_feed_content($content); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function _oembed_filter_feed_content( $content ) { 
  2. return str_replace( '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"', '<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted"', $content );