WordPress at a glance
function is not described

_wp_privacy_completed_request() WP 4.9.6

Marks a request as completed by the admin and logs the current timestamp.

No Hooks.

Return

Int/WP_Error. $request Request ID on success or WP_Error.

Usage

_wp_privacy_completed_request( $request_id );
$request_id(int) (required)
Request ID.

Code of wp privacy completed request: wp-admin/includes/user.php VER 5.0.3

<?php
function _wp_privacy_completed_request( $request_id ) {
	$request_id   = absint( $request_id );
	$request_data = wp_get_user_request_data( $request_id );

	if ( ! $request_data ) {
		return new WP_Error( 'privacy_request_error', __( 'Invalid request.' ) );
	}

	update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() );

	$request = wp_update_post( array(
		'ID'          => $request_id,
		'post_status' => 'request-completed',
	) );

	return $request;
}