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)
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>';
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |