Developer Resources

A comprehensive list of filters and actions included in our plugin

Hooks / nab_{$experiment_type}_duplicate_alternative_content

apply_filters( “nab_{$experiment_type}_duplicate_alternative_content”, array $new_alternative, array $old_alternative, int $new_experiment_id, string $new_alternative_id, int $old_experiment_id, string $old_alternative_id )

Fires when an experiment is being duplicated and one of its alternatives is to be duplicated into the new experiment.

Parameters

$new_alternative array

(Required) new alternative (by default, an exact copy of old alternative).

$old_alternative array

(Required) old alternative.

$new_experiment_id int

(Required) id of the new experiment.

$new_alternative_id string

(Required) id of the new alternative.

$old_experiment_id int

(Required) id of the old experiment.

$old_alternative_id string

(Required) id of the old alternative.

Person writing a new WordPress post on a MacBook

Looking for popups?

We have the best plugin to create popups for WordPress in minutes.

Request Customized Enterprise Pricing

10
200000

With your express consent, we handle the information provided for the purpose of contacting you and until you ask us to delete it.

70% OF YOUR VISITORS DO EXACTLY WHAT
YOU JUST DID AND NEVER COME BACK!

KEEP THEM
ON YOUR SITE
LONGER WITH
NELIO POPUPS

Claim Your Discount Now

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

Image with a 10%-off coupon

WAIT! BEFORE YOU GO...

Get this awesome discount now!

No, I don't want to save money

YOUR COOKIE SETTINGS


This site uses proprietary operational cookies that have a purely functional purpose and third-party cookies that help us understand how visitors interact with the site by collecting and presenting information anonymously. To get more information about these cookies and the processing of your personal data, check our Privacy & Cookie Policy. Do you accept these cookies and the processing of personal data involved?


If you don’t, you can reject non-operational cookies and continue browsing this site by clicking here.