filtrod 5.4.0
wp_privacy_additional_user_profile_data
Opis — z kodu źródłowego
Filters the user's profile data for the privacy exporter.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$additional_user_profile_data | array | { 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_User | The user whose data is being exported. |
$reserved_names | string[] | 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
}
// 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