wp_register_comment_personal_data_eraser( array $erasers ): array

In this article

Registers the personal data eraser for comments.

Parameters

$erasersarrayrequired
An array of personal data erasers.

Return

array An array of personal data erasers.

Source

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;
}

Changelog

VersionDescription
4.9.6Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.