wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



_oembed_filter_feed_content › WordPress Function

Desde4.4.0
Obsoleton/a
› _oembed_filter_feed_content ( $content )
Acesso:
  • private
Parâmetros:
  • (string) $content The content to filter.
    Required: Yes
Retorna:
  • (string) The filtered content.
Definido em:
Codex:

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



Fonte

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