wp_register_user_personal_data_exporter() WordPress Function

The wp_register_user_personal_data_exporter() function allows you to export personal data for a specific user. This is useful if you need to comply with the European Union's General Data Protection Regulation (GDPR).

wp_register_user_personal_data_exporter( array $exporters ) #

Registers the personal data exporter for users.


Parameters

$exporters

(array)(Required)An array of personal data exporters.


Top ↑

Return

(array) An array of personal data exporters.


Top ↑

Source

File: wp-includes/user.php

function wp_register_user_personal_data_exporter( $exporters ) {
	$exporters['wordpress-user'] = array(
		'exporter_friendly_name' => __( 'WordPress User' ),
		'callback'               => 'wp_user_personal_data_exporter',
	);

	return $exporters;
}


Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More