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



wp_dashboard_primary_output › WordPress Function

Desde3.8.0
Obsoleton/a
wp_dashboard_primary_output ( $widget_id, $feeds )
Parâmetros: (2)
  • (string) $widget_id Widget ID.
    Required: Yes
  • (array) $feeds Array of RSS feeds.
    Required: Yes
Definido em:
Codex:
Log de mudanças:
  • 4.8.0

Displays the WordPress events and news feeds.



Fonte

function wp_dashboard_primary_output( $widget_id, $feeds ) {
	foreach ( $feeds as $type => $args ) {
		$args['type'] = $type;
		echo '<div class="rss-widget">';
			wp_widget_rss_output( $args['url'], $args );
		echo '</div>';
	}
}