准备要在RSS源中显示的oembed HTML。
原型
_oembed_filter_feed_content( string $content )
参数
$content
(string)
(Required)
要过滤的内容。
返回值
(string)
过滤的内容。
源文件
路径:wp-includes/embed.php
<?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 );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/_oembed_filter_feed_content/