wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_dashboard_primary_output › WordPress Function

Since3.8.0
Deprecatedn/a
wp_dashboard_primary_output ( $widget_id, $feeds )
Parameters: (2)
  • (string) $widget_id Widget ID.
    Required: Yes
  • (array) $feeds Array of RSS feeds.
    Required: Yes
Defined at:
Codex:
Change Log:
  • 4.8.0

Displays the WordPress events and news feeds.



Source

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