wp_privacy_additional_user_profile_data

wp_privacy_additional_user_profile_data

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_privacy_additional_user_profile_data') is found 1 times:

  • /wp-includes/user.php line 3960
    	 * @param WP_User  $user           The user whose data is being exported.
    	 * @param 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.
    	 */
    	$_extra_data = apply_filters( 'wp_privacy_additional_user_profile_data', array(), $user, $reserved_names );
    
    	if ( is_array( $_extra_data ) && ! empty( $_extra_data ) ) {
    		// Remove items that use reserved names.
    		$extra_data = array_filter(
    			$_extra_data,
    			static function ( $item ) use ( $reserved_names ) {