Developer Resources

A comprehensive list of filters and actions included in our plugin

Hooks / nab_exclude_woocommerce_product_from_testing

apply_filters( ‘nab_exclude_woocommerce_product_from_testing’, boolean $skip, Nelio_AB_TestingWooCommerceCompatWC_Product|Nelio_AB_TestingWooCommerceCompatnumber $product )

Filters whether a certain tested product should indeed be tested or not.

Parameters

$skip boolean

(Required) Whether a certain tested product should indeed be tested or not. Default: false (meaning, it will indeed be tested)

$product Nelio_AB_TestingWooCommerceCompatWC_Product|Nelio_AB_TestingWooCommerceCompatnumber

(Required) WooCommerce product/variation or WooCommerce product ID.