WC_Product::add_to_cart_url
Get the add to url used mainly in loops.
Method of the class: WC_Product{}
Hooks from the method
Returns
String.
Usage
$WC_Product = new WC_Product(); $WC_Product->add_to_cart_url();
WC_Product::add_to_cart_url() WC Product::add to cart url code WC 10.6.2
public function add_to_cart_url() {
return apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_permalink(), $this );
}