SurveyX Builder 2.0.1 has 6 actions and 9 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when SurveyX Builder fires an action
add_action( 'surveyx_survey_saved', function( $new_survey_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value SurveyX Builder is about to use
add_filter( 'surveyx_get_location', function( $location, $ip_address ) {
// Change $location here.
return $location;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires after a survey is created, or its settings / content / questions / * answers are saved. Cache layers (the static /init payload, and the summary / * analytics caches) subscribe to invalidate their entry so nothing stale * survives the write. Here it also covers a fresh id reusing a just-deleted * survey's slot. */ do_action( 'surveyx_survey_saved', $new_survey_id ); -
/** * Fires after session processing; Pro hooks its orphaned-upload sweep here. */ do_action( 'surveyx_after_process_sessions' ); -
/** * Action hook for post-import processing (Pro: remap recall mentions). */ do_action( 'surveyx_after_template_import', $survey_id, $id_mapping, $import_id ); -
/** * Filter to allow custom geolocation implementation. */ apply_filters( 'surveyx_get_location', $location, $ip_address ); -
/** * Fires after a survey is deleted. Cache layers subscribe to drop any entry * keyed by this survey ID so nothing stale survives the deletion. */ do_action( 'surveyx_survey_deleted', $survey_id ); -
/** * Filter survey overview data. Allows Pro to extend with additional data. */ apply_filters( 'surveyx_survey_overview_data', $data, $survey_id, $snapshot ); -
/** * Filter the analytics snapshot. Pro attaches the aggregates the base * measurement does not cover. Anything added here is measured in the same pass * as the summary figures - and must be numbers only, never labels. */ apply_filters( 'surveyx_survey_overview_snapshot', $snapshot, $survey_id ); -
apply_filters( 'surveyx_text_response_type_map', $type_map ); -
apply_filters( 'surveyx_admin_localize_data', [ 'apiUrl' => esc_url_raw( rest_url( 'surveyx/v1/admin' ) ), 'surveyXBase' => SURVEYX_HOST_BASE, 'apiNonce' => wp_create_nonce( 'wp_rest' ), 'isRtl' => is_rtl(), 'isProMode' => false, 'pageEnabled' => class_exists( 'SurveyX_Public_Page' ) && SurveyX_Public_Page::is_enabled() ? '1' : '0', 'settings' => [ 'default_cover_layout' => SurveyX_Admin_Db::get_settings()['default_cover_layout'] ?? 'stack... ); -
apply_filters( 'surveyx_allowed_text_response_types', [ 'text_input', 'other' ] ); -
do_action( 'surveyx_before_doing_save', $data ); -
apply_filters( 'surveyx_extract_text_display', '', $content, $answer_type ); -
apply_filters( 'surveyx_import_processed_data', $processed_data, $import_id ); -
do_action( 'surveyx_respondent_email_added', $respondent_id ); -
apply_filters( 'surveyx_trust_proxy_headers', false );
Generated from SurveyX Builder's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: