Automattic\WooCommerce\Internal\CustomerEmailVerification

VerificationController::redirect_with_result │ private │ WC 1.0

Redirect to the orders section carrying a one-off result code, then exit.

Метод класса: VerificationController{}

Хуков нет.

Возвращает

never.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->redirect_with_result( $code ): void;
$code(строка) (обязательный)
Result code understood by {@see self::result_notice()}.

Код VerificationController::redirect_with_result() WC 11.2.2

private function redirect_with_result( string $code ): void {
	wp_safe_redirect( add_query_arg( self::NOTICE_PARAM, $code, wc_get_account_endpoint_url( 'orders' ) ) );
	exit;
}