WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Blocks

BlockTypesController::redirect_to_field() public WC 1.0

Adds a redirect field to the login form so blocks can redirect users after login.

{} Это метод класса: BlockTypesController{}

Хуков нет.

Возвращает

null. Ничего.

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

$BlockTypesController = new BlockTypesController();
$BlockTypesController->redirect_to_field();

Код BlockTypesController::redirect_to_field() WC 5.4.1

<?php
public function redirect_to_field() {
	// phpcs:ignore WordPress.Security.NonceVerification
	if ( empty( $_GET['redirect_to'] ) ) {
		return;
	}
	echo '<input type="hidden" name="redirect" value="' . esc_attr( esc_url_raw( wp_unslash( $_GET['redirect_to'] ) ) ) . '" />'; // phpcs:ignore WordPress.Security.NonceVerification
}