wp_dashboard_primary_output() WordPress Function

The wp_dashboard_primary_output() function is used to display the primary output for the WordPress Dashboard. This function is used to display the main content for the Dashboard, including the Left Now widget area.

wp_dashboard_primary_output( string $widget_id, array $feeds ) #

Displays the WordPress events and news feeds.


Parameters

$widget_id

(string)(Required)Widget ID.

$feeds

(array)(Required)Array of RSS feeds.


Top ↑

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
VersionDescription
4.8.0Removed popular plugins feed.
3.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.