WC_Product_External::add_to_cart_url()publicWC 1.0

Get the add to url used mainly in loops.

Method of the class: WC_Product_External{}

Hooks from the method

Return

String.

Usage

$WC_Product_External = new WC_Product_External();
$WC_Product_External->add_to_cart_url();

WC_Product_External::add_to_cart_url() code WC 7.1.0

public function add_to_cart_url() {
	return apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_product_url(), $this );
}