Developer Resources

A comprehensive list of filters and actions included in our plugin

Hooks / nab_{$experiment_type}_did_switch_queried_object

apply_filters( “nab_{$experiment_type}_did_switch_queried_object”, boolean $switch_queried_object, array $alternative, array $control, int $experiment_id, string $alternative_id )

Whether the given experiment switched the queried object or not.

Parameters

$switch_queried_object boolean

(Required) whether the given experiment should trigger a page view. Default: false.

$alternative array

(Required) the current alternative.

$control array

(Required) original version.

$experiment_id int

(Required) id of the experiment.

$alternative_id string

(Required) id of the current alternative.