WordPress at Your Fingertips
function is not described

_wp_privacy_resend_request() WP 4.9.6

Resend an existing request and return the result.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

true|WP_Error. Returns true if sending the email was successful, or a WP_Error object.

Usage

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

Changelog

Since 4.9.6 Introduced.

Code of _wp_privacy_resend_request() WP 5.8.2

function _wp_privacy_resend_request( $request_id ) {
	$request_id = absint( $request_id );
	$request    = get_post( $request_id );

	if ( ! $request || 'user_request' !== $request->post_type ) {
		return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) );
	}

	$result = wp_send_user_request( $request_id );

	if ( is_wp_error( $result ) ) {
		return $result;
	} elseif ( ! $result ) {
		return new WP_Error( 'privacy_request_error', __( 'Unable to initiate confirmation for personal data request.' ) );
	}

	return true;
}