wpseek.com
A WordPress-centric search engine for devs and theme authors



_oembed_filter_feed_content › WordPress Function

Since4.4.0
Deprecatedn/a
_oembed_filter_feed_content ( $content )
Access:
  • private
Parameters:
  • (string) $content The content to filter.
    Required: Yes
Returns:
  • (string) The filtered content.
Defined at:
Codex:

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



Source

function _oembed_filter_feed_content( $content ) {
	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 );
}