Google_Calendar_Helpers::redirect_with_error( string $error_message = '' )

Method redirect_with_error.


Description Description

Redirects with an error message.


Top ↑

Parameters Parameters

$error_message

(Optional) The error message. return void.

Default value: ''


Source Source

File: src/integrations/google-calendar/helpers/google-calendar-helpers.php

	public function redirect_with_error( $error_message = '' ) {

		wp_safe_redirect(
			$this->get_settings_page_url(
				array(
					'auth_error' => $error_message,
				)
			)
		);

		exit;

	}