WordPress开发者和主题制作者的搜索引擎



wp_dashboard_primary_output ›

Since3.8.0
已弃用n/a
wp_dashboard_primary_output ( $widget_id, $feeds )
参数: (2)
  • (string) $widget_id Widget ID.
    Required: Yes
  • (array) $feeds Array of RSS feeds.
    Required: Yes
定义在:
文档:
Change Log:
  • 4.8.0

Display the WordPress events and news feeds.



源码

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>';
	}
}