dashboard_primary_feed filter-hookWP 2.3.0

Filters the primary feed URL for the 'WordPress Events and News' dashboard widget.

Usage

add_filter( 'dashboard_primary_feed', 'wp_kama_dashboard_primary_feed_filter' );

/**
 * Function for `dashboard_primary_feed` filter-hook.
 * 
 * @param string $url The widget's primary feed URL.
 *
 * @return string
 */
function wp_kama_dashboard_primary_feed_filter( $url ){

	// filter...
	return $url;
}
$url(string)
The widget's primary feed URL.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

wp_dashboard_primary()
dashboard_primary_feed
wp-admin/includes/dashboard.php 1551
'url'          => apply_filters( 'dashboard_primary_feed', __( 'https://wordpress.org/news/feed/' ) ),

Where the hook is used in WordPress

Usage not found.