Filter hook 'dashboard_secondary_feed'

in WP Core File wp-admin/includes/dashboard.php at line 1580

View Source

dashboard_secondary_feed

Filter Hook
Description
Filters the secondary feed URL for the 'WordPress Events and News' dashboard widget.

Hook Information

File Location wp-admin/includes/dashboard.php View on GitHub
Hook Type Filter
Line Number 1580

Hook Parameters

Type Name Description
string $url The widget's secondary feed URL.

Usage Examples

Basic Usage
<?php
// Hook into dashboard_secondary_feed
add_filter('dashboard_secondary_feed', 'my_custom_filter', 10, 1);

function my_custom_filter($url) {
    // Your custom filtering logic here
    return $url;
}

Source Code Context

wp-admin/includes/dashboard.php:1580 - How this hook is used in WordPress core
<?php
1575  			 *
1576  			 * @since 2.3.0
1577  			 *
1578  			 * @param string $url The widget's secondary feed URL.
1579  			 */
1580  			'url'          => apply_filters(
1581  				'dashboard_secondary_feed',
1582  				/* translators: Link to the Planet feed of the locale. */
1583  				__( 'https://planet.wordpress.org/feed/' )
1584  			),
1585  

PHP Documentation

<?php
/**
			 * Filters the secondary feed URL for the 'WordPress Events and News' dashboard widget.
			 *
			 * @since 2.3.0
			 *
			 * @param string $url The widget's secondary feed URL.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/dashboard.php
Related Hooks

Related hooks will be displayed here in future updates.