dashboard_secondary_link
Filters the secondary link URL for the 'WordPress Events and News' dashboard widget.
Usage
add_filter( 'dashboard_secondary_link', 'wp_kama_dashboard_secondary_link_filter' );
/**
* Function for `dashboard_secondary_link` filter-hook.
*
* @param string $link The widget's secondary link URL.
*
* @return string
*/
function wp_kama_dashboard_secondary_link_filter( $link ){
// filter...
return $link;
}
- $link(string)
- The widget's secondary link URL.
Changelog
| Since 2.3.0 | Introduced. |
Where the hook is called
dashboard_secondary_link
wp-admin/includes/dashboard.php 1582-1586
'link' => apply_filters( 'dashboard_secondary_link', /* translators: Link to the Planet website of the locale. */ __( 'https://planet.wordpress.org/' ) ),