dashboard_primary_title
Filter HookDescription
Filters the primary 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 | 1552 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$title
|
Title attribute for the widget's primary link. |
Usage Examples
Basic Usage
<?php
// Hook into dashboard_primary_title
add_filter('dashboard_primary_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:1552
- How this hook is used in WordPress core
<?php
1547 *
1548 * @since 2.3.0
1549 *
1550 * @param string $title Title attribute for the widget's primary link.
1551 */
1552 'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ),
1553 'items' => 2,
1554 'show_summary' => 0,
1555 'show_author' => 0,
1556 'show_date' => 0,
1557 ),
PHP Documentation
<?php
/**
* Filters the primary link title for the 'WordPress Events and News' dashboard widget.
*
* @since 2.3.0
*
* @param string $title Title attribute for the widget's primary 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.