wp_register_comment_personal_data_exporter()WP 4.9.6

Registers the personal data exporter for comments.

No Hooks.

Return

Array. An array of personal data exporters.

Usage

wp_register_comment_personal_data_exporter( $exporters );
$exporters(array) (required)
An array of personal data exporters.

Changelog

Since 4.9.6 Introduced.

wp_register_comment_personal_data_exporter() code WP 6.1.1

function wp_register_comment_personal_data_exporter( $exporters ) {
	$exporters['wordpress-comments'] = array(
		'exporter_friendly_name' => __( 'WordPress Comments' ),
		'callback'               => 'wp_comments_personal_data_exporter',
	);

	return $exporters;
}