Hooks / nab_{$experiment_type}_load_alternative

do_action( "nab_{$experiment_type}_load_alternative", array $alternative, array $control, int $experiment_id, string $alternative_id )

Fires when a certain alternative is about to be loaded as part of a split test.

Description

Use this action to add any hooks that your experiment type might require in order to properly load the alternative.

Parameters

$alternative

(array) (Required) attributes of the active alternative.

$control

(array) (Required) attributes of the control version.

$experiment_id

(int) (Required) experiment ID.

$alternative_id

(string) (Required) alternative ID.

Source

File: public/helpers/class-nelio-ab-testing-alternative-loader.php

Changelog

Changelog
Version Description
5.0.0 Introduced.