diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 7d6a4a1656..4bb6b4d54b 100644
a
|
b
|
function wp_user_personal_data_exporter( $email_address ) { |
3003 | 3003 | } |
3004 | 3004 | } |
3005 | 3005 | |
| 3006 | /** |
| 3007 | * Filter to extend the Users personal data for the privacy exporter. |
| 3008 | * |
| 3009 | * @since 5.4.0 |
| 3010 | * |
| 3011 | * @param array An associative array containing Title => Data. |
| 3012 | * @param array The default core data to be exported. |
| 3013 | */ |
| 3014 | $extra_data = apply_filters( 'wp_privacy_additional_user_data', array(), $user_data_to_export ); |
| 3015 | |
| 3016 | if ( ! empty( $extra_data ) && is_array( $extra_data ) ) { |
| 3017 | $user_data_to_export = array_merge( $user_data_to_export, $extra_data ); |
| 3018 | } |
| 3019 | |
3006 | 3020 | $data_to_export[] = array( |
3007 | 3021 | 'group_id' => 'user', |
3008 | 3022 | 'group_label' => __( 'User' ), |
3009 | | 'group_description' => __( 'User’s profile data.' ), |
| 3023 | 'group_description' => __( 'User’s meta data.' ), |
3010 | 3024 | 'item_id' => "user-{$user->ID}", |
3011 | 3025 | 'data' => $user_data_to_export, |
3012 | 3026 | ); |