WP HOOKS
filtrod 5.4.0

wp_privacy_additional_user_profile_data

Args 3Plik wp-includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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

Parametry

ParametrTypOpis
$additional_user_profile_dataarray{ 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'. }
$user\WP_UserThe user whose data is being exported.
$reserved_namesstring[]An array of reserved names. Any item in <code>$additional_user_data</code> that uses one of these for its <code>name</code> will not be included in the export.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_privacy_additional_user_profile_data', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii