dashboard_secondary_link
Filter HookDescription
Filters the secondary link 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 | 1567 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$link
|
The widget's secondary link URL. |
Usage Examples
Basic Usage
<?php
// Hook into dashboard_secondary_link
add_filter('dashboard_secondary_link', 'my_custom_filter', 10, 1);
function my_custom_filter($link) {
// Your custom filtering logic here
return $link;
}
Source Code Context
wp-admin/includes/dashboard.php:1567
- How this hook is used in WordPress core
<?php
1562 *
1563 * @since 2.3.0
1564 *
1565 * @param string $link The widget's secondary link URL.
1566 */
1567 'link' => apply_filters(
1568 'dashboard_secondary_link',
1569 /* translators: Link to the Planet website of the locale. */
1570 __( 'https://planet.wordpress.org/' )
1571 ),
1572
PHP Documentation
<?php
/**
* Filters the secondary link URL for the 'WordPress Events and News' dashboard widget.
*
* @since 2.3.0
*
* @param string $link The widget's secondary link 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.