update_right_now_text
Filter HookDescription
Filters the text displayed in the 'At a Glance' dashboard widget. Prior to 3.8.0, the widget was named 'Right Now'.Hook Information
File Location |
wp-admin/includes/update.php
View on GitHub
|
Hook Type | Filter |
Line Number | 392 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
Default text. |
Usage Examples
Basic Usage
<?php
// Hook into update_right_now_text
add_filter('update_right_now_text', 'my_custom_filter', 10, 1);
function my_custom_filter($content) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-admin/includes/update.php:392
- How this hook is used in WordPress core
<?php
387 *
388 * @since 4.4.0
389 *
390 * @param string $content Default text.
391 */
392 $content = apply_filters( 'update_right_now_text', $content );
393
394 $msg .= sprintf( '<span id="wp-version">' . $content . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );
395
396 echo "<p id='wp-version-message'>$msg</p>";
397 }
PHP Documentation
<?php
/**
* Filters the text displayed in the 'At a Glance' dashboard widget.
*
* Prior to 3.8.0, the widget was named 'Right Now'.
*
* @since 4.4.0
*
* @param string $content Default text.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/update.php
Related Hooks
Related hooks will be displayed here in future updates.