Developer Resources

A comprehensive list of filters and actions included in our plugin

Hooks / nab_is_tested_post_by_{$experiment->get_type()}_experiment

apply_filters( “nab_is_tested_post_by_{$experiment->get_type()}_experiment”, boolean $is_tested, number $post_id, array $control, number $exp_id )

Filters whether the current request is a single post that’s tested by the given experiment.

Parameters

$is_tested boolean

(Required) whether the current request is a single post that’s tested by the given experiment.

$post_id number

(Required) post ID of the current post (if any).

$control array

(Required) original version.

$exp_id number

(Required) ID of the experiment.