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



wp_dashboard_primary_output › WordPress Function

Da3.8.0
Deprecaton/a
wp_dashboard_primary_output ( $widget_id, $feeds )
Parametri: (2)
  • (string) $widget_id Widget ID.
    Richiesto:
  • (array) $feeds Array of RSS feeds.
    Richiesto:
Definito a:
Codex:
ChangeLog:
  • 4.8.0

Displays the WordPress events and news feeds.



Sorgenti

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