wp_privacy_additional_user_profile_data

Advertisement

Summery Summery

Filter to extend the user’s profile data for the privacy exporter.

Syntax Syntax

apply_filters( 'wp_privacy_additional_user_profile_data', array $additional_user_profile_data, WP_User $user, string[] $reserved_names )

Parameters Parameters

$additional_user_profile_data

An array of name-value pairs of additional user data items. Default empty array.

  • 'name'
    (string) The user-facing name of an item name-value pair,e.g. 'IP Address'.
  • 'value'
    (string) The user-facing value of an item data pair, e.g. '50.60.70.0'.

$user

The user whose data is being exported.

$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.

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.4.0 Introduced.

Advertisement

Leave a Reply