dashboard_secondary_feed
Filters the secondary feed URL for the 'WordPress Events and News' dashboard widget.
Usage
add_filter( 'dashboard_secondary_feed', 'wp_kama_dashboard_secondary_feed_filter' ); /** * Function for `dashboard_secondary_feed` filter-hook. * * @param string $url The widget's secondary feed URL. * * @return string */ function wp_kama_dashboard_secondary_feed_filter( $url ){ // filter... return $url; }
- $url(string)
- The widget's secondary feed URL.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
dashboard_secondary_feed
wp-admin/includes/dashboard.php 1589
'url' => apply_filters( 'dashboard_secondary_feed', __( 'https://planet.wordpress.org/feed/' ) ),