Hooks / nab_{$experiment_type}_apply_alternative

apply_filters( "nab_{$experiment_type}_apply_alternative", boolean $applied, array $alternative, array $control, int $experiment_id, string $alternative_id )

Filter to apply the given alternative.

Description

This filter is used to apply the given alternative. It returns true if the alternative was properly applied and false otherwise.

Parameters

$applied

(boolean) (Required) whether the alternative was properly applied or not. Default: false.

$alternative

(array) (Required) alternative to apply.

$control

(array) (Required) original version.

$experiment_id

(int) (Required) id of the experiment.

$alternative_id

(string) (Required) id of the alternative to apply.

Source

File: includes/experiments/class-nelio-ab-testing-experiment.php

Changelog

Changelog
Version Description
5.0.0 Introduced.