wp_dashboard_primary_output() – Display the WordPress events and news feeds.

You appear to be a bot. Output may be restricted

Description

Displays the WordPress events and news feeds.

Usage

wp_dashboard_primary_output( $widget_id, $feeds );

Parameters

$widget_id
( string ) required – Widget ID.
$feeds
( array ) required – Array of RSS feeds.

Returns

void

Source

File name: wordpress/wp-admin/includes/dashboard.php
Lines:

1 to 8 of 8
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>';
  }
}
 

 View on GitHub View on Trac