wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_dashboard_primary_output › WordPress Function

Depuis3.8.0
Dépréciéen/a
wp_dashboard_primary_output ( $widget_id, $feeds )
Paramètres: (2)
  • (string) $widget_id Widget ID.
    Requis: Oui
  • (array) $feeds Array of RSS feeds.
    Requis: Oui
Défini(e) dans:
Codex:
Changelog:
  • 4.8.0

Displays the WordPress events and news feeds.



Source

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