Filters the user’s profile data for the privacy exporter.
Parameters
$additional_user_profile_data
array- An array of name-value pairs of additional user data items. Default empty array.
name
stringThe user-facing name of an item name-value pair,e.g. ‘IP Address’.value
stringThe user-facing value of an item data pair, e.g.'50.60.70.0'
.
$user
WP_User- The user whose data is being exported.
$reserved_names
string[]- An array of reserved names. Any item in
$additional_user_data
that uses one of these for itsname
will not be included in the export.
Source
$_extra_data = apply_filters( 'wp_privacy_additional_user_profile_data', array(), $user, $reserved_names );
Changelog
Version | Description |
---|---|
5.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.