privacy_on_link_text
Filter HookDescription
Filters the link label for the 'Search engines discouraged' message 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/dashboard.php
View on GitHub
|
Hook Type | Filter |
Line Number | 400 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
Default text. |
Usage Examples
Basic Usage
<?php
// Hook into privacy_on_link_text
add_filter('privacy_on_link_text', 'my_custom_filter', 10, 1);
function my_custom_filter($content) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-admin/includes/dashboard.php:400
- How this hook is used in WordPress core
<?php
395 *
396 * @since 3.0.0
397 *
398 * @param string $content Default text.
399 */
400 $content = apply_filters( 'privacy_on_link_text', __( 'Search engines discouraged' ) );
401
402 $title_attr = '' === $title ? '' : " title='$title'";
403
404 echo "<p class='search-engines-info'><a href='options-reading.php'$title_attr>$content</a></p>";
405 }
PHP Documentation
<?php
/**
* Filters the link label for the 'Search engines discouraged' message
* displayed in the 'At a Glance' dashboard widget.
*
* Prior to 3.8.0, the widget was named 'Right Now'.
*
* @since 3.0.0
*
* @param string $content Default text.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/dashboard.php
Related Hooks
Related hooks will be displayed here in future updates.