wp_dashboard_primary_output( string $widget_id, array $feeds )

In this article

Displays the WordPress events and news feeds.

Parameters

$widget_idstringrequired
Widget ID.
$feedsarrayrequired
Array of RSS 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>';
	}
}

Changelog

VersionDescription
4.8.0Removed popular plugins feed.
3.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.