woocommerce_product_add_to_cart_url

woocommerce_product_add_to_cart_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_add_to_cart_url') is found 4 times:

  • /includes/abstracts/abstract-wc-product.php line 1927
    	 *
    	 * @return string
    	 */
    	public function add_to_cart_url() {
    		return apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_permalink(), $this );
    	}
    
    	/**
    	 * Get the add to cart button text for the single page.
    	 *
    	 * @return string
    
  • /includes/class-wc-product-external.php line 161
    	 * @access public
    	 * @return string
    	 */
    	public function add_to_cart_url() {
    		return apply_filters( 'woocommerce_product_add_to_cart_url', $this->get_product_url(), $this );
    	}
    
    	/**
    	 * Get the add to cart button text for the single page.
    	 *
    	 * @access public
    
  • /includes/class-wc-product-simple.php line 51
    				),
    				( function_exists( 'is_feed' ) && is_feed() ) || ( function_exists( 'is_404' ) && is_404() ) ? $this->get_permalink() : ''
    			)
    		) : $this->get_permalink();
    		return apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this );
    	}
    
    	/**
    	 * Get the add to cart button text.
    	 *
    	 * @return string
    
  • /includes/class-wc-product-variation.php line 203
    				),
    				$this->get_permalink()
    			)
    		) : $this->get_permalink();
    		return apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this );
    	}
    
    	/**
    	 * Get SKU (Stock-keeping unit) - product unique ID.
    	 *
    	 * @param  string $context What the value is for. Valid values are view and edit.