wp_privacy_additional_user_profile_data

过滤钩子
apply_filters( 'wp_privacy_additional_user_profile_data', array()
参数
  • (array) $additional_user_profile_data { 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'. }
    Required:
  • (WP_User) $user The user whose data is being exported.
    Required:
  • (string[]) $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.
    Required:
定义位置
相关勾子
edit_user_profile_updatewp_privacy_personal_data_export_file_createdwp_pre_insert_user_datawp_privacy_personal_data_erasededit_user_profile
相关方法
wp_privacy_anonymize_data_get_additional_user_keys_wp_privacy_action_request_typeswp_ajax_wp_privacy_erase_personal_datawp_privacy_anonymize_ip_wp_privacy_settings_filter_draft_page_titles
引入
5.4.0
弃用
-

wp_privacy_additional_user_profile_data: 这是一个在用户个人资料页面添加附加数据的过滤器。使用此过滤器可以为用户的个人资料页面添加其他数据,例如额外的用户信息或插件的额外信息。

为隐私导出器过滤用户的个人资料数据。

$_extra_data = apply_filters( 'wp_privacy_additional_user_profile_data', array(), $user, $reserved_names );

常见问题

FAQs
查看更多 >