Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_oembed_filter_feed_content() WordPress Function

The oembed filter feed content function is used to retrieve the content of an oembed post and return it to the main query. This function is used to display the content of an oembed post in the main query.

_oembed_filter_feed_content( string $content ) #

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


Parameters

$content

(string)(Required)The content to filter.


Top ↑

Return

(string) The filtered content.


Top ↑

Source

File: wp-includes/embed.php

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 );
}

Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.