Hooks
nab_privacy_policy_content
Filters the content of Nelio A/B Testing’s privacy policy.
nab_installed
Fires once the plugin has been installed.
nab_updated
Fires once the plugin has been updated.
nab_flush_all_caches
Triggers a request to flush all compatible caches.
nab_use_nelio_proxy
Whether the plugin should use Nelio’s proxy instead of accessing AWS directly.
nab_add_extra_script_attributes
Filters the attributes that should be added to a tag.
nab_home_url
Filters the home URL.
nab_staging_urls
List of URLs (or keywords) used to identify a staging site.
nab_disable_split_testing
Whether the current request should be excluded from split testing or not.
nab_register_experiment_post_type
Filters the args of the “Experiment” post type.
nab_register_post_types
This action fires right before registering the “Experiment” post type.
nab_{$experiment_type}_backup_control
Fires when an experiment is stopped and a backup of the control version has to be generated.
nab_{$experiment_type}_preview_link_alternative
Filters the preview link of the given alternative.
nab_{$experiment_type}_heatmap_link_alternative
Filters the heatmap link of the given alternative.
nab_{$experiment_type}_edit_link_alternative
Filters the edit link of the given alternative.
nab_{$experiment_type}_remove_alternative_content
Fires when an alternative is being removed.
nab_{$experiment_type}_duplicate_alternative_content
Fires when an experiment is being duplicated and one of its alternatives is to be duplicated into the new experiment.
nab_duplicate_experiment
Fires after an experiment has been duplicated.
nab_pause_experiment
Fires after an experiment has been paused.
nab_stop_experiment
Fires after an experiment has been stopped.
nab_resume_experiment
Fires after an experiment has been resumed.
nab_start_experiment
Fires after an experiment has been started.
nab_save_experiment
Fires after an experiment has been saved.
nab_{$experiment_type}_create_alternative_content
This filter is triggered when a new alternative has been added to an experiment.
nab_{$experiment_type}_apply_alternative
Filter to apply the given alternative.
nab_{$experiment_type}_sanitize_control_attributes
Sanitizes control attributes.
nab_{$experiment_type}_sanitize_alternative_attributes
Sanitizes alternative attributes.
nab_{$experiment_type}_get_tested_element
Returns the tested element ID of this experiment.
nab_check_validity_of_preview_url
Filters whether the plugin should check if the given URL exists or not.
nab_skip_scope_overlap_detection
Filters whether scope overlap detection should be ignored when starting a new test.
nab_migration_request_timeout
This class migrates old experiments to Nelio A/B Testing 5.0 format.
nab_post_json_extra_data
Adds extra data to a post that’s about to be included in a Nelio A/B Testing’s post-related REST request.
nab_site_created
Fires once the site has been registered in Nelio’s cloud.
nab_request_timeout
This file contains a class for logging experiments in AWS.
nab_is_setting_disabled
Whether the given setting is disabled or not.
nab_{$tab_name}_settings
Filters the sections and fields of the given tab.
nab_get_testable_taxonomies
Gets the taxonomies that can be tested and, therefore, should be replaced during a test.
nab_use_control_id_in_alternative
Whether we should use the original post ID when loading an alternative post or not.
nab_use_control_id_in_elementor_alternative
Whether we should use the original post ID when loading an alternative post built with Elementor or not.
nab_track_order_total
Filters which products in an order contribute to the conversion revenue.
nab_enable_custom_woocommerce_hooks
Enables (or disables) custom WooCommerce filters for a given WooCommerce product.
nab_order_status_for_conversions
Returns the statuses that might trigger a conversion when there’s a WooCommerce order.
nab_woocommerce_variation_sale_price
Filters the sale price of a variation in a WooCommerce variable product.
nab_woocommerce_variation_description
Filters the short description of a variation in a WooCommerce variable product.
nab_woocommerce_variation_image_id
Filters the featured image ID of a variation in a WooCommerce variable product.
nab_woocommerce_variation_regular_price
Filters the regular price of a variation in a WooCommerce variable product.
nab_woocommerce_product_sale_price
Filters the sale price of a (non-variable) WooCommerce product.
nab_woocommerce_product_regular_price
Filters the regular price of a (non-variable) WooCommerce product.
nab_woocommerce_product_image_id
Filters the featured image of a WooCommerce product.
nab_woocommerce_product_gallery_ids
Filters the array of image IDs that make up the product’s gallery.
nab_woocommerce_product_description
Filters the description of a WooCommerce product.
nab_woocommerce_product_short_description
Filters the short description of a WooCommerce product.
nab_is_{$experiment_type}_woocommerce_experiment
Filters whether the experiment type (included in the filter name) is related to WooCommerce or not.
nab_woocommerce_product_name
Filters the name of a WooCommerce product.
nab_experiment_type_column_in_experiment_list
Filters the experiment type value in the experiment type column.
nab_enqueue_experiment_assets
Fires after enqueuing experiments assets in the experiment and the alternative edit screens.
nab_get_taxonomies_to_overwrite
Filters the list of taxonomies that can be overwritten (if any).
nab_wp_slash_post_on_duplicate
Filters whether the function `wp_slash` should be applied when inserting a duplicated post.
nab_duplicate_post_pre
Runs before duplicating a post.
nab_overwrite_post
Runs after overwriting a WordPress post with the data from another post.
nab_is_{$experiment_type}_preview_browsing_enabled
Filters whether user should be able to browse site on preview mode or not.
nab_alternative_preview_link_duration
Filters the alternative preview duration in minutes. If set to 0, the preview link never expires.
nab_{$experiment_type}_preview_alternative
Fires when a certain alternative is about to be previewed.
nab_ignore_query_args_in_scope
Whether to ignore query args when trying to match the current URL with a URL specified in an experiment scope.
nab_is_tested_post_by_{$experiment->get_type()}_experiment
Filters whether the current request is a single post that’s tested by the given experiment.
nab_query_vars
Filters public query vars.
nab_{$experiment_type}_disable_experiment_in_url
Filters whether a certain experiment should be disabled for the current request.
nab_is_{$experiment_type}_priority_experiment
Filters whether a certain experiment is a priority experiment or not.
nab_can_load_alternative_content_on_post_request
Filters whether the plugin can attempt to load alternative content when processing a post request or not.
nab_optional_frontend_scripts
Filters whether NAB scripts are optional or not.
nab_relevant_heatmaps_loaded
Fires after determining the list of relevant heatmaps.
nab_relevant_regular_experiments_loaded
Fires after determining the list of relevant regular experiments.
nab_relevant_priority_experiments_loaded
Fires after determining the list of relevant priority experiments.
nab_gdpr_cookie
Filters the name of the cookie that monitors GDPR acceptance.
nab_referrer_param
Filters the query arg that retains the original referrer after performing a JavaScript redirection.
nab_ignore_trailing_slash_in_alternative_loading
Filters whether alternative content loading should ignore the trailing slash in a URL when comparing the current URL and the URL of the alternative the visitor is supposed to see.
nab_{$experiment_type}_exclude_experiment_from_loading
Whether the experiment should be excluded from adding a `nab` query arg in the current request or not.
nab_{$experiment_type}_load_alternative
Fires when a certain alternative is about to be loaded as part of a split test.
nab_global_page_view_throttle
Filters the throttle interval to trigger page view events on global tests.
nab_woocommerce_page_view_throttle
Filters the throttle interval to trigger page view events on WooCommerce tests.
nab_use_send_beacon_tracking
Filters whether the plugin should track JS events with `navigator.sendBeacon` or not.
nab_should_track_clicks_with_optimized_xpath
Whether the plugin should track click events with an optimized xpath structured.
nab_{$experiment_type}_should_track_heatmap
Whether the given experiment should track heatmaps in the current request.
nab_{$experiment_type}_track_page_views_in_footer
Whether experiments of the given type should send page view events in the footer, after the whole page has been created and rendered.
nab_{$experiment_type}_should_trigger_page_view
Whether the given experiment should trigger a page view in the current page/alternative combination.
nab_{$experiment_type}_alternative_post_attribute
Filters the name of the attribute (if any) that contains an alternative post ID. If none, return `false`.
nab_{$action_type}_add_hooks_for_tracking
Fires for each conversion action in a running experiment.
nab_is_visitor_tested
Whether the user related to the current request should be tested or not.
nab_simulate_anonymous_visitor
Simulates an anonymous visitor.
nab_public_init
Initialized the public facet of the plugin.