wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_oembed_filter_feed_content › WordPress Function

Depuis4.4.0
Dépréciéen/a
_oembed_filter_feed_content ( $content )
Accès:
  • private
Paramètres:
  • (string) $content The content to filter.
    Requis: Oui
Retourne:
  • (string) The filtered content.
Défini(e) dans:
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 );
}