_oembed_filter_feed_content()WP 4.4.0

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

Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.

No Hooks.

Return

String. The filtered content.

Usage

_oembed_filter_feed_content( $content );
$content(string) (required)
The content to filter.

Changelog

Since 4.4.0 Introduced.

_oembed_filter_feed_content() code WP 6.3

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