wp_dashboard_rss_output() WordPress Function

The wp_dashboard_rss_output() function allows you to display RSS feeds on the WordPress dashboard. This function accepts two parameters: the RSS feed URL and the number of items to display.

wp_dashboard_rss_output( string $widget_id ) #

Display generic dashboard RSS widget feed.


Parameters

$widget_id

(string)(Required)


Top ↑

Source

File: wp-admin/includes/dashboard.php

function wp_dashboard_rss_output( $widget_id ) {
	$widgets = get_option( 'dashboard_widget_options' );
	echo '<div class="rss-widget">';
	wp_widget_rss_output( $widgets[ $widget_id ] );
	echo '</div>';
}


Top ↑

Changelog

Changelog
VersionDescription
2.5.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.