Developer Resources

A comprehensive list of filters and actions included in our plugin

Hooks / nab_is_{$experiment_type}_relevant_in_ajax_request

apply_filters( “nab_is_{$experiment_type}_relevant_in_ajax_request”, boolean $loadable, string $action, Nelio_AB_Testing_Experiment $experiment )

Filters whether the given experiment should be loaded in a REST request or not.

Parameters

$loadable boolean

(Required) whether experiment is loadable in REST request or not.

$action string

(Required) name of the AJAX action.

$experiment Nelio_AB_Testing_Experiment

(Required) the experiment.