dashboard_secondary_title
Filter HookDescription
Filters the secondary link title 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 | 1593 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$title
|
Title attribute for the widget's secondary link. |
Usage Examples
Basic Usage
<?php
// Hook into dashboard_secondary_title
add_filter('dashboard_secondary_title', 'my_custom_filter', 10, 1);
function my_custom_filter($title) {
// Your custom filtering logic here
return $title;
}
Source Code Context
wp-admin/includes/dashboard.php:1593
- How this hook is used in WordPress core
<?php
1588 *
1589 * @since 2.3.0
1590 *
1591 * @param string $title Title attribute for the widget's secondary link.
1592 */
1593 'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
1594
1595 /**
1596 * Filters the number of secondary link items for the 'WordPress Events and News' dashboard widget.
1597 *
1598 * @since 4.4.0
PHP Documentation
<?php
/**
* Filters the secondary link title for the 'WordPress Events and News' dashboard widget.
*
* @since 2.3.0
*
* @param string $title Title attribute for the widget's secondary link.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/dashboard.php
Related Hooks
Related hooks will be displayed here in future updates.