Hooks
nab_relevant_custom_priority_experiments_loaded
Marks the list of experiments with custom priority as loaded.
nab_is_{$experiment_type}_relevant_in_rest_request
Filters whether the given experiment should be loaded in a REST request or not.
nab_is_experiment_relevant_in_rest_request
Filters whether the given experiment should be loaded in a REST request or not.
nab_is_{$experiment_type}_relevant_in_{$action}_ajax_request
Filters whether the given experiment should be loaded in a REST request or not.
nab_is_experiment_relevant_in_{$action}_ajax_request
Filters whether the given experiment should be loaded in a REST request or not.
nab_is_{$experiment_type}_relevant_in_ajax_request
Filters whether the given experiment should be loaded in a REST request or not.
nab_is_experiment_relevant_in_ajax_request
Filters whether the given experiment should be loaded in a REST request or not.
nab_relevant_heatmaps_loaded
Fires after determining the list of relevant heatmaps.
nab_relevant_{$priority}_priority_experiments_loaded
Fires after determining the list of `$priority` (either `high`, `mid`, or `low`) priority experiments.
nab_query_vars
Filters public query vars.
nab_{$experiment_type}_should_trigger_footer_page_view
Whether the given experiment should trigger a page view in the current page/alternative combination.
nab_public_init
Initializes the public facet of the plugin.
nab_simulate_anonymous_visitor
Simulates an anonymous visitor.
nab_requested_alternative
Filters the alternative that should be loaded for active tests.
nab_relevant_{$priority}_priority_experiments
Filters the list of `$priority` (either `high`, `mid`, or `low`) priority experiments.
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_{$experiment_type}_experiment_priority
Filters the experiment priority, which specifies the moment at which an experiment’s relevance will be computed.
nab_current_url
Filters current URL.
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_privacy_policy_content
Filters the content of Nelio A/B Testing’s privacy policy.
nab_is_{$experiment_type}_php_scope_relevant
Whether the experiment is relevant in the current request or not.
nab_updated
Fires once the plugin has been updated.
nab_installed
Fires once the plugin has been installed.
nab_uninstalled
Fires once the plugin has been uninstalled.
nab_tab_settings
Filters the tabs in the settings screen.
nab_{$experiment_type}_preview_alternative
Fires when a certain alternative is about to be previewed.
nab_is_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_preview_browsing_args
Filters the arguments that should be added in URL to allow preview browsing.
nab_{$experiment_type}_load_alternative
Fires when a certain alternative is about to be loaded as part of a split test.
nab_main_script_settings
Filters main public script settings.
nab_disable_visitor_type_script
Short-circuits the enqueue of the visitor type script.
nab_gdpr_cookie
Filters the name of the cookie that monitors GDPR acceptance.
nab_should_track_clicks_with_optimized_xpath
Whether the plugin should track click events with an optimized xpath structured.
nab_woocommerce_page_view_throttle
Filters the throttle interval to trigger page view events on WooCommerce tests.
nab_alternative_urls
Filters the list of alternative URLs in the current request.
nab_trigger_single_conversion_per_page_view
Filters whether the plugin should only trigger one conversion per goal per regular page view or not.
nab_is_{$experiment_type}_relevant_in_url
Short-circuits whether the given experiment should be relevant or not.
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_global_page_view_throttle
Filters the throttle interval to trigger page view events on global tests.
nab_use_send_beacon_tracking
Filters whether the plugin should track JS events with `navigator.sendBeacon` or not.
nab_pre_get_unique_views_from_request
Short-circuits get unique views from request.
nab_pre_get_ga4_client_id_from_request
Short-circuits get GA4 client ID from request.
nab_minify_js
Filters whether JavaScript code inserted by our plugin should be minified or not.
nab_minify_css
Filters whether JavaScript code inserted by our plugin should be minified or not.
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_is_rest_api_request
Whether the request is a non-legacy REST API request.
nab_get_queried_object_id
Filters the queried object ID.
nab_alternative_loading_overlay_timeout
Filters the maximum time the alternative loading overlay will be visible.
nab_alternative_loading_overlay_color
Filters the overlay color.
nab_pre_get_segments_from_request
Short-circuits get segments from request.
nab_pre_get_experiments_with_page_view_from_request
Short-circuits get experiments with page view from request.
nab_disable_split_testing
Whether the current request should be excluded from split testing or not.
nab_staging_urls
List of URLs (or keywords) used to identify a staging site.
nab_are_subscription_controls_disabled
Filters whether the subscription controls are disabled or not.
nab_home_url
Filters the home URL.
nab_add_extra_script_attributes
Filters the attributes that should be added to a tag.
nab_site_updated
Runs after storing the site data in cache.
nab_site_created
Fires once the site has been registered in Nelio’s cloud.
nab_pre_get_posts
Filters the post before the actual query is run.
nab_pre_get_post
Filters the post before the actual query is run.
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_post_json
Filters the values in an encoded post, as used in Nelio’s REST API.
nab_ai_item_url
Filters the URL used in GA4 reports.
nab_{$tab_name}_settings
Filters the sections and fields of the given tab.
nab_is_setting_disabled
Whether the given setting is disabled or not.
nab_get_post_types
Filters the list of available post types in A/B tests.
nab_wp_post_search_args
Filters the arguments used to search for WordPress posts.
nab_template_contexts
Filters the array of template contexts available in a Nelio A/B Testing’s REST request.
nab_templates
Filters the array of templates available for each post type in a Nelio A/B Testing’s REST request.
nab_use_nelio_proxy
Whether the plugin should use Nelio’s proxy instead of accessing AWS directly.
nab_max_combinations
Filters the maximum number of different values the cookie `nabAlternative` can take.
nab_enable_custom_woocommerce_hooks
Enables (or disables) custom WooCommerce filters for a given WooCommerce product.
nab_load_proper_alternative_woocommerce_product
Runs when loading an alternative WooCommerce product.
nab_woocommerce_variable_product_types
Filters the list of product types that should be considered as variable products.
nab_woocommerce_alternative_loaded
Fires when a WooCommerce alternative has run.
nab_woocommerce_is_price_testing_enabled
Enables (or disables) testing of WooCommerce product prices.
nab_exclude_woocommerce_product_from_testing
Filters whether a certain tested product should indeed be tested or not.
nab_track_woocommerce_orders_on_all_pages
Filters whether wc-order conversion actions can be tracked on all pages or not.
nab_track_wc_order_total
Filters which products in an order contribute to the conversion revenue.
nab_wc_order_value
Filters the value of an WC order.
nab_order_status_for_conversions
Returns the statuses that might trigger a conversion when there’s a WooCommerce order.
nab_track_surecart_orders_on_all_pages
Filters whether surecart-order conversion actions can be tracked on all pages or not.
nab_surecart_order_value
Filters the value of a SureCart order.
nab_track_surecart_order_total
Filters which products in an order contribute to the conversion revenue.
nab_{$experiment_type}_disable_query_arg_preloading
Filters whether query args preloading should be skipped for the given test.
nab_css_previewer_is_url_in_scope
Filters whether the test is in scope or not.
nab_use_control_id_in_alternative
Whether we should use the original post ID when loading an alternative post or not.
nab_get_testable_taxonomies
Gets the taxonomies that can be tested and, therefore, should be replaced during a test.
nab_preview_synced_pattern
Runs on special template to preview synced patterns.
nab_javascript_previewer_is_url_in_scope
Filters whether the test is in scope or not.
nab_track_edd_orders_on_all_pages
Filters whether edd-order conversion actions can be tracked on all pages or not.
nab_track_edd_order_total
Filters which products in an order contribute to the conversion revenue.
nab_edd_order_value
Filters the value of an EDD order.
nab_edd_order_status_for_conversions
Returns the statuses that might trigger a conversion when there’s an Easy Digital Downloads order.
nab_check_validity_of_preview_url
Filters whether the plugin should check if the given URL exists or not.
nab_flush_all_caches
Triggers a request to flush all compatible caches.
nab_are_hubspot_forms_enabled
Whether hubspot forms should be available in conversion actions or not.
nab_duplicate_experiment
Fires after an experiment has been duplicated.
nab_{$experiment_type}_supports_heatmaps
Whether an experiment type supports heatmap tracking on requests in which it’s active.
nab_{$experiment_type}_edit_link_alternative
Filters the edit link of the given alternative.
nab_{$experiment_type}_backup_control
Fires when an experiment is stopped and a backup of the control version has to be generated.
nab_remove_{$experiment_type}_control_backup
Fires when an experiment is restarted and its control backup (if any) should be removed.
nab_sanitize_conversion_action_attributes
Filters a conversion action’s attributes.
nab_sanitize_conversion_action_scope
Filters a conversion action’s scope.
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_{$experiment_type}_get_page_view_tracking_location
Filters the “moment” in which an active test should trigger a page view.
nab_{$type}_get_alternative_summary
Filters the experiment attributes that will be passed to front-end script.
nab_get_{$type}_conversion_action_summary
Filters a conversion action attributes that will be passed to front-end script.
nab_{$experiment_type}_remove_alternative_content
Fires when an alternative is being removed.
nab_{$experiment_type}_heatmap_link_alternative
Filters the heatmap link of the given alternative.
nab_{$experiment_type}_preview_link_alternative
Filters the preview link of the given alternative.
nab_{$experiment_type}_skip_preview_args_alternative
Filters whether custom query args should be added to the URL or not.
nab_settings_screen_after
Fires after the settings form.
nab_show_session_recordings_page
Whether the recordings page should be visible.
nab_javascript_editor_globals
Filters global variables and functions in the JavaScript editor to prevent it from showing linter warnings when using one of those.
nab_register_post_types
This action fires right before registering the “Experiment” post type.
nab_request_timeout
This file contains a class for logging experiments in AWS.
nab_stop_experiment
Fires after an experiment has been stopped.
nab_register_experiment_post_type
Filters the args of the “Experiment” post type.
nab_{$experiment_type}_get_tested_posts
This file defines the class of a Nelio A/B Testing Experiment.
nab_max_hours_to_restart_test
Filters the number of hours after a test has been stopped that limit if it can or can’t be resumed.
nab_{$experiment_type}_sanitize_alternative_attributes
Sanitizes alternative attributes.
nab_{$experiment_type}_apply_alternative
Filter to apply the given alternative.
nab_{$experiment_type}_create_alternative_content
This filter is triggered when a new alternative has been added to an experiment.
nab_sanitize_experiment_scope
Sanitizes test scope.
nab_pre_save_experiment
Fires before the experiment is saved.
nab_save_experiment
Fires after an experiment has been saved.
nab_start_experiment
Fires after an experiment has been started.
nab_resume_experiment
Fires after an experiment has been resumed.
nab_pause_experiment
Fires after an experiment has been paused.
nab_{$experiment_type}_get_inline_settings
Filters whether the experiment is inline (and thus doesn’t require a redirection to load alternative content) or not.
nab_has_{$experiment_type}_multi_url_alternative
Filters whether the experiment variants are each in a different URL.
nab_extra_version_in_overview_widget
Filters the extra version in overview widget.
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_wp_slash_post_on_duplicate
Filters whether the function `wp_slash` should be applied when inserting a duplicated post.
nab_get_taxonomies_to_overwrite
Filters the list of taxonomies that can be overwritten (if any).
nab_enqueue_experiment_assets
Fires after enqueuing experiments assets in the experiment and the alternative edit screens.
nab_experiment_type_column_in_experiment_list
Filters the experiment type value in the experiment type column.
nab_get_metas_to_overwrite
Filters the list of metas that will be overwritten.



