_oembed_filter_feed_content

函数
_oembed_filter_feed_content ( $content )
Access
Private
参数
  • (string) $content The content to filter.
    Required:
返回值
  • (string) The filtered content.
定义位置
相关方法
filter_block_contentwp_oembed_register_routerest_filter_response_by_contextget_theme_starter_contentwp_filter_content_tags
引入
4.4.0
弃用
-

_oembed_filter_feed_content: 这个函数用来过滤feed中oEmbed响应的内容。

准备好显示在RSS提要中的嵌入HTML。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 11:36:30

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: