We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3d1a6 commit 8eb13c9Copy full SHA for 8eb13c9
src/Integrations/WooCommerce.php
@@ -178,6 +178,8 @@ public function track_add_to_cart_on_product_page() {
178
* Track add to cart actions by direct link, e.g. ?product_type=download&add-to-cart=1&quantity=1
179
*
180
* @return void
181
+ *
182
+ * @codeCoverageIgnore Because we can't test XHR here.
183
*/
184
public function track_direct_add_to_cart() {
185
if ( ! isset( $_REQUEST[ 'add-to-cart' ] ) || ! is_numeric( wp_unslash( $_REQUEST[ 'add-to-cart' ] ) ) ) {
0 commit comments