Automattic\WooCommerce\Blocks\BlockTypes

AddToCartForm::add_to_cart_form_action │ public │ WC 1.0

Use current url as the add to cart form action.

Method of the class: AddToCartForm{}

No Hooks.

Returns

string. The current URL.

Usage

$AddToCartForm = new AddToCartForm();
$AddToCartForm->add_to_cart_form_action();

AddToCartForm::add_to_cart_form_action() code WC 11.1.2

public function add_to_cart_form_action() {
	return BlocksUtils::get_current_page_url();
}