Automattic\WooCommerce\StoreApi\Payments

PaymentResult::set_redirect_url()publicWC 1.0

Set redirect URL.

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

Хуков нет.

Возвращает

null. Ничего.

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

$PaymentResult = new PaymentResult();
$PaymentResult->set_redirect_url( $redirect_url );
$redirect_url(массив)
URL to redirect the customer to after checkout.
По умолчанию: []

Код PaymentResult::set_redirect_url() WC 6.8.0

public function set_redirect_url( $redirect_url = [] ) {
	$this->redirect_url = esc_url_raw( $redirect_url );
}