Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalController::get_form_action_url │ private │ WC 1.0

Get the form action URL.

Method of the class: OrderWithdrawalController{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_form_action_url(): string;

OrderWithdrawalController::get_form_action_url() code WC 11.2.1

private function get_form_action_url(): string {
	$account_url = wc_get_page_permalink( 'myaccount' );

	return wc_get_endpoint_url( self::ENDPOINT_KEY, '', $account_url ? $account_url : home_url( '/' ) );
}