wp_dashboard_rss_output

Display generic dashboard RSS widget feed.

Description

wp_dashboard_rss_output( (string) $widget_id ); 

Parameters (1)

0. $widget_id (string)
The widget id.

Usage

  1. if ( !function_exists( 'wp_dashboard_rss_output' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/dashboard.php'; 
  3.  
  4. // The widget id. 
  5. $widget_id = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_dashboard_rss_output($widget_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/dashboard.php  
  1. function wp_dashboard_rss_output( $widget_id ) { 
  2. $widgets = get_option( 'dashboard_widget_options' ); 
  3. echo '<div class="rss-widget">'; 
  4. wp_widget_rss_output( $widgets[ $widget_id ] ); 
  5. echo "</div>";