Filter hook 'wp_privacy_additional_user_profile_data'

in WP Core File wp-includes/user.php at line 3940

Description

Filters the user's profile data for the privacy exporter. }

Occurrences

Filename Line Number
wp-includes/user.php 3940

Parameters

Type Name Description
array $additional_user_profile_data { An array of name-value pairs of additional user data items. Default empty array.
WP_User $user The user whose data is being exported.
string[] $reserved_names An array of reserved names. Any item in `$additional_user_data` that uses one of these for its `name` will not be included in the export.

PHP Doc

/**
	 * Filters the user's profile data for the privacy exporter.
	 *
	 * @since 5.4.0
	 *
	 * @param array    $additional_user_profile_data {
	 *     An array of name-value pairs of additional user data items. Default empty array.
	 *
	 *     @type string $name  The user-facing name of an item name-value pair,e.g. 'IP Address'.
	 *     @type string $value The user-facing value of an item data pair, e.g. '50.60.70.0'.
	 * }
	 * @param WP_User  $user           The user whose data is being exported.
	 * @param string[] $reserved_names An array of reserved names. Any item in `$additional_user_data`
	 *                                 that uses one of these for its `name` will not be included in the export.
	 */