wp_dashboard_primary()

ClassicPress News dashboard widget.


Source

File: wp-admin/includes/dashboard.php

function wp_dashboard_primary() {
	$feeds = array(
		'news' => array(

			/**
			 * Filters the primary link URL for the 'ClassicPress News' dashboard widget.
			 *
			 * @since WP-2.5.0
			 *
			 * @param string $link The widget's primary link URL.
			 */
			'link' => apply_filters( 'dashboard_primary_link', 'https://www.classicpress.net/blog/' ),

			/**
			 * Filters the primary feed URL for the 'ClassicPress News' dashboard widget.
			 *
			 * @since WP-2.3.0
			 *
			 * @param string $url The widget's primary feed URL.
			 */
			'url' => apply_filters( 'dashboard_primary_feed', 'https://www.classicpress.net/feed/' ),

			/**
			 * Filters the primary link title for the 'ClassicPress News' dashboard widget.
			 *
			 * @since WP-2.3.0
			 *
			 * @param string $title Title attribute for the widget's primary link.
			 */
			'title'        => apply_filters( 'dashboard_primary_title', __( 'ClassicPress Blog' ) ),
			'items'        => 5,
			'show_summary' => 0,
			'show_author'  => 0,
			'show_date'    => 0,
		),
	);

	wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_primary_output', $feeds );
}


Changelog

Changelog
Version Description
WP-4.8.0 Removed popular plugins feed.
WP-2.7.0 Introduced.