Hooks / nab_{$experiment_type}_create_alternative_content

apply_filters( "nab_{$experiment_type}_create_alternative_content", array $new_alternative, array $control, int $experiment_id, string $alternative_id )

This filter is triggered when a new alternative has been added to an experiment.

Description

Hook into this action if you want to perform additional actions to create alternative content related to this new alternative. Add any extra options/fields in the new alternative.

Parameters

$new_alternative

(array) (Required) current alternative.

$control

(array) (Required) original version.

$experiment_id

(int) (Required) id of the experiment.

$alternative_id

(string) (Required) id of the current alternative.

Source

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

Changelog

Changelog
Version Description
5.0.0 Introduced.