Hooks / nab_is_visitor_tested

apply_filters( 'nab_is_visitor_tested', boolean $is_visitor_tested )

Whether the user related to the current request should be tested or not.

Description

With this filter, you can decide if the current user participates in your running experiments or not. By default, all users are tested except those that have (at least) an editor role.

Notice. Our plugin uses JavaScript to load alternative content. Be careful when limiting tests in PHP, as it’s possible that your cache or CDN ends up caching these limitations and, as a result, none of your visitors are tested.

Parameters

$is_visitor_tested

(boolean) (Required) whether the user related to the current request should be tested or not.

Source

File: public/class-nelio-ab-testing-public.php

Changelog

Changelog
VersionDescription
5.0.0Introduced.