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
Return
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 9.2.3
public function add_to_cart_url() { return apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_permalink(), $this ); }