Alpha Fields 1.0.1 has 8 actions and 43 filters, read directly from its source code on Nov 19, 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 Alpha Fields fires an action
add_action( 'alpcf7_address_tag_generator_fields', function( $tgg, $contact_form ) {
// Your code runs here.
}, 10, 2 );
// Change a value Alpha Fields is about to use
add_filter( 'alpcf7_api_key_verification_result', function( $value, $key, $data ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
/** * Add-on-specific controls for the Address tag generator. */ do_action( 'alpcf7_address_tag_generator_fields', $tgg, $contact_form ); -
/** * Collect the verification outcome for the saved integration. */ apply_filters( 'alpcf7_api_key_verification_result', null, $key, $data ); -
/** * Filter whether entry files are deleted along with the entry. */ apply_filters( 'alpcf7_delete_entry_files', $enabled ); -
/** * Allow custom field add-ons to provide a rich read-only representation for * their own stored entry data. */ apply_filters( 'alpcf7_entry_field_display_value', $display_value, $meta, $field_type, $entry ); -
/** * Let custom form fields replace the generic entry-edit control. Returning a * non-empty HTML string marks the field as handled. */ apply_filters( 'alpcf7_entry_field_edit_input', '', $meta, $field_type, $field_name, $fields_detail, $this->entry ); -
/** * Allow a field type to override the value persisted for a given key (e.g. the * file-upload field stores a JSON list of permanent file URLs instead of CF7's * sha256 placeholder). */ apply_filters( 'alpcf7_entry_field_value', $value, $key ); -
/** * A custom field may return its own database-ready value (including an array * that Query::update_entry_meta() serializes safely). Null delegates to the * original scalar/checkbox sanitization below. */ apply_filters( 'alpcf7_entry_field_value_before_update', null, $value, $meta_rows[$meta_id], $entry ); -
/** * Allow extensions to add or replace complete entry fields after CF7's posted * data has been collected. This is intentionally separate from * alpcf7_entry_field_value: server-generated values (such as a submission ID) * do not have to be exposed in the browser or injected into WPCF7_Submission's * private posted-data property. */ apply_filters( 'alpcf7_entry_fields', $fields, $submission, $cf7 ); -
/** * Generic integration lifecycle action. */ do_action( 'alpcf7_entry_lifecycle', $event, $entry, $context ); -
/** * Event-specific action, e.g. alpcf7_entry_lifecycle_updated. */ do_action( "alpcf7_entry_lifecycle_{$event}", $entry, $context ); -
/** * Filter lifecycle context before integrations receive it. */ apply_filters( 'alpcf7_entry_lifecycle_context', $context, $event, $entry ); -
/** * Let a field type summarize its own stored shape for the listing. */ apply_filters( 'alpcf7_entry_meta_summary', null, $decoded, $value ); -
/** * Allow integrations to render their own sidebar boxes on the single-entry * screen (e.g. ActiveCampaign contact status). */ do_action( 'alpcf7_entry_sidebar_boxes', $entry ); -
/** * Whether a field type can be edited inline on the single entry screen. */ apply_filters( 'alpcf7_field_type_is_editable', ! in_array($type, $not_editable, true), $type ); -
/** * Let add-ons append their own options to the File Upload tag generator — * the Pro OneDrive integration prints its "upload to OneDrive" toggle and * folder picker here. */ do_action( 'alpcf7_file_upload_tag_generator_fields', $tgg, $contact_form ); -
/** * Filter the Google Maps JS API URL. */ apply_filters( 'alpcf7_google_maps_url', $url ); -
/** * Filters post types allowed for a metabox AJAX-search request. */ apply_filters( 'alpcf7_metabox_ajax_search_post_types', $post_types, $requested_type, $search ); -
/** * Filters Select2 results produced by the built-in content search. */ apply_filters( 'alpcf7_metabox_ajax_search_results', $results, $query ); -
/** * Filters the label displayed for a saved AJAX-select value. */ apply_filters( 'alpcf7_metabox_ajax_select_label', $label, $value, $this->field ); -
/** * Allow dispatch to be disabled for a specific entry/event. */ apply_filters( 'alpcf7_should_dispatch_entry_lifecycle', true, $event, $entry, $context ); -
/** * Fires after integration settings are saved, so an integration can verify its * API key against the live service. */ do_action( 'alpcf7_verify_api_key', $key, $data ); -
apply_filters( 'alpcf7_entry_date_format', get_option('date_format') . ' \a\t ' . get_option('time_format') ); -
apply_filters( 'alpcf7_valid_status', self::$valid_statuses ); -
apply_filters( 'alpcf7_addon_file_path', $file, $type, $item ); -
apply_filters( 'alpcf7_address_attributes', $atts, $tag ); -
apply_filters( 'alpcf7_allowed_settings_keys', ['settings'] ); -
apply_filters( 'alpcf7_countries', $countries ); -
apply_filters( 'alpcf7_currency', $currency, $code, $settings ); -
apply_filters( 'alpcf7_currency_data', [ 'USD' => $before(__('United States Dollar', 'alphafields-for-contact-form-7'), 'USD', '$'), 'GBP' => $before(__('Pound Sterling', 'alphafields-for-contact-form-7'), 'GBP', '£'), 'EUR' => $after(__('Euro', 'alphafields-for-contact-form-7'), 'EUR', '€'), 'AUD' => $before(__('Australian Dollar', 'alphafields-for-contact-form-7'), 'AUD', 'A$'), 'BRL' => $before(__('Brazilian Real', 'alphafield... ); -
apply_filters( 'alpcf7_currency_settings', $choices ); -
apply_filters( 'alpcf7_datetime_attributes', $atts, $tag ); -
apply_filters( 'alpcf7_dynamic_text_attributes', $atts, $tag ); -
apply_filters( 'alpcf7_dynamic_text_value', '', $source, $key ); -
apply_filters( 'alpcf7_entry_lifecycle_events', self::EVENTS ); -
apply_filters( 'alpcf7_entry_skip_fields', $skip, $submission, $cf7 ); -
apply_filters( 'alpcf7_extension_list', array( 'redirection' => array( 'slug' => 'redirection', 'title' => 'Redirection', 'description' => __('Send visitors to a Thank You page or any external URL right after a successful form submission.', 'alphafields-for-contact-form-7'), 'icon' => 'alpcf7-icon icon-streetsign', 'demo' => '', 'doc' => '', 'package' => 'free', ), 'conditional-logic' => array( 'slug' => 'conditional-logic', 'title' ... ); -
apply_filters( 'alpcf7_field_list', array( 'address' => array( 'slug' => 'address', 'title' => 'Address Field', 'description' => __('Capture a full street address with country, state and ZIP in one structured field.', 'alphafields-for-contact-form-7'), 'icon' => 'alpcf7-icon icon-map1', 'package' => 'free', ), 'range-slider' => array( 'slug' => 'range-slider', 'title' => 'Range Slider', 'description' => __('Let visitors pick a nu... ); -
apply_filters( 'alpcf7_input_mask_attributes', $atts, $tag ); -
apply_filters( 'alpcf7_integration_list', array( 'brevo' => array( 'slug' => 'brevo', 'title' => 'Brevo', 'description' => __('Sync form submissions to your Brevo contact lists automatically.', 'alphafields-for-contact-form-7'), 'icon' => 'alpcf7-icon icon-brevo', 'package' => 'free', ), 'mailchimp' => array( 'slug' => 'mailchimp', 'title' => 'Mailchimp', 'description' => __('Add subscribers to your Mailchimp audience on every form sub... ); -
apply_filters( 'alpcf7_localize_data', $data, $hook ); -
apply_filters( 'alpcf7_metabox_before_save_option', $metabox_value, $post_id ); -
apply_filters( 'alpcf7_phone_attributes', $atts, $tag ); -
apply_filters( 'alpcf7_postmeta_options', $value = array() ); -
apply_filters( 'alpcf7_pro_upgrade_url', 'https://pluginscafe.com/alphafields-for-contact-form-7/' ); -
apply_filters( 'alpcf7_settings_options', [ [ 'id' => 'settings', 'title' => esc_html__('Settings', 'alphafields-for-contact-form-7'), 'icon' => 'icon-settings', 'section' => [ [ 'id' => 'settings', 'title' => esc_html__('Settings', 'alphafields-for-contact-form-7'), 'class' => 'alpcf7_settings_panel__half', 'fields' => [ [ 'name' => 'currency', 'label' => esc_html__('Currency', 'alphafields-for-contact-form-7'), 'type' => 'select', 't... ); -
apply_filters( 'alpcf7_submission_id_value', $value, $number, $form_id, $options ); -
apply_filters( 'alpcf7_us_states', $states ); -
apply_filters( 'alpcf7_whats_new_url', 'https://pluginscafe.com/alphafields-for-contact-form-7/' ); -
do_action( 'wp_head' );
Generated from Alpha Fields'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: