wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_oembed_filter_feed_content › WordPress Function

Da4.4.0
Deprecaton/a
› _oembed_filter_feed_content ( $content )
Accedi:
  • private
Parametri:
  • (string) $content The content to filter.
    Richiesto: Sì
Ritorna:
  • (string) The filtered content.
Definito a:
Codex:

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



Sorgenti

function _oembed_filter_feed_content( $content ) {
	$p = new WP_HTML_Tag_Processor( $content );
	while ( $p->next_tag( array( 'tag_name' => 'iframe' ) ) ) {
		if ( $p->has_class( 'wp-embedded-content' ) ) {
			$p->remove_attribute( 'style' );
		}
	}
	return $p->get_updated_html();
}