wp_dashboard_primary_output( string $widget_id, array $feeds )

Displays the WordPress events and news feeds.


Parameters Parameters

$widget_id

(string) (Required) Widget ID.

$feeds

(array) (Required) Array of RSS feeds.



Top ↑

Source Source

File: wp-admin/includes/dashboard.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.8.0 Removed popular plugins feed.
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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