wp_privacy_anonymize_data
Filter HookDescription
Filters the anonymous data for each type.Hook Information
File Location |
wp-includes/functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 8299 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$anonymous
|
Anonymized data. |
string
|
$type
|
Type of the data. |
string
|
$data
|
Original data. |
Usage Examples
Basic Usage
<?php
// Hook into wp_privacy_anonymize_data
add_filter('wp_privacy_anonymize_data', 'my_custom_filter', 10, 3);
function my_custom_filter($anonymous, $type, $data) {
// Your custom filtering logic here
return $anonymous;
}
Source Code Context
wp-includes/functions.php:8299
- How this hook is used in WordPress core
<?php
8294 *
8295 * @param string $anonymous Anonymized data.
8296 * @param string $type Type of the data.
8297 * @param string $data Original data.
8298 */
8299 return apply_filters( 'wp_privacy_anonymize_data', $anonymous, $type, $data );
8300 }
8301
8302 /**
8303 * Returns the directory used to store personal data export files.
8304 *
PHP Documentation
<?php
/**
* Filters the anonymous data for each type.
*
* @since 4.9.6
*
* @param string $anonymous Anonymized data.
* @param string $type Type of the data.
* @param string $data Original data.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/functions.php
Related Hooks
Related hooks will be displayed here in future updates.