dashboard_primary_link filter-hookWP 2.5.0

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

Usage

add_filter( 'dashboard_primary_link', 'wp_kama_dashboard_primary_link_filter' );

/**
 * Function for `dashboard_primary_link` filter-hook.
 * 
 * @param string $link The widget's primary link URL.
 *
 * @return string
 */
function wp_kama_dashboard_primary_link_filter( $link ){

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

Changelog

Since 2.5.0 Introduced.

Where the hook is called

wp_dashboard_primary()
dashboard_primary_link
wp-admin/includes/dashboard.php 1547
'link'         => apply_filters( 'dashboard_primary_link', __( 'https://wordpress.org/news/' ) ),

Where the hook is used in WordPress

Usage not found.