wp_register_comment_personal_data_eraser()WP 4.9.6

Registers the personal data eraser for comments.

No Hooks.

Return

Array. An array of personal data erasers.

Usage

wp_register_comment_personal_data_eraser( $erasers );
$erasers(array) (required)
An array of personal data erasers.

Changelog

Since 4.9.6 Introduced.

wp_register_comment_personal_data_eraser() code WP 6.1.1

function wp_register_comment_personal_data_eraser( $erasers ) {
	$erasers['wordpress-comments'] = array(
		'eraser_friendly_name' => __( 'WordPress Comments' ),
		'callback'             => 'wp_comments_personal_data_eraser',
	);

	return $erasers;
}