Alpha Fields icon
Forms

Alpha Fields hooks reference

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.

functions.phpyour child theme
// 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

  • includes/fields/address/address.php line 436
    /**
     * Add-on-specific controls for the Address tag generator.
     */
    do_action( 'alpcf7_address_tag_generator_fields', $tgg, $contact_form );
  • includes/ajax.php line 704
    /**
     * Collect the verification outcome for the saved integration.
     */
    apply_filters( 'alpcf7_api_key_verification_result', null, $key, $data );
  • includes/entry_files.php line 54
    /**
     * Filter whether entry files are deleted along with the entry.
     */
    apply_filters( 'alpcf7_delete_entry_files', $enabled );
  • includes/admin/entries/single_entry.php line 361
    /**
     * 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 );
  • includes/admin/entries/single_entry.php line 515
    /**
     * 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 );
  • includes/capture.php line 44
    /**
     * 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 );
  • includes/admin/entries/single_entry.php line 1005
    /**
     * 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 );
  • includes/capture.php line 60
    /**
     * 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 );
  • includes/entry-lifecycle.php line 71
    /**
     * Generic integration lifecycle action.
     */
    do_action( 'alpcf7_entry_lifecycle', $event, $entry, $context );
  • includes/entry-lifecycle.php line 74
    /**
     * Event-specific action, e.g. alpcf7_entry_lifecycle_updated.
     */
    do_action( "alpcf7_entry_lifecycle_{$event}", $entry, $context );
  • includes/entry-lifecycle.php line 56
    /**
     * Filter lifecycle context before integrations receive it.
     */
    apply_filters( 'alpcf7_entry_lifecycle_context', $context, $event, $entry );
  • includes/admin/entries/list_table.php line 449
    /**
     * Let a field type summarize its own stored shape for the listing.
     */
    apply_filters( 'alpcf7_entry_meta_summary', null, $decoded, $value );
  • includes/admin/entries/single_entry.php line 158
    /**
     * 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 );
  • includes/function.php line 577
    /**
     * 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 );
  • includes/fields/file-upload/file-upload.php line 365
    /**
     * 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 );
  • includes/extensions/address-autocomplete/address-autocomplete.php line 297
    /**
     * Filter the Google Maps JS API URL.
     */
    apply_filters( 'alpcf7_google_maps_url', $url );
  • includes/admin/templates/header.php line 17
    /**
     * Build the list of navigation items shown in the header.
     */
    apply_filters( 'alpcf7_header_menu_items', array( array( 'label' => __('Dashboard', 'alphafields-for-contact-form-7'), 'url' => admin_url('admin.php?page=alpcf7&tab=dashboard'), 'active' => ($alpcf7_current_page === 'alpcf7' && $alpcf7_current_tab === 'dashboard'), 'data_tab' => 'dashboard', ), array( 'label' => __('Extensions', 'alphafields-for-contact-form-7'), 'url' => admin_url('admin.php?page=alpcf7&tab=extensions'), 'active' => ($... );
  • includes/ajax.php line 72
    /**
     * Filters post types allowed for a metabox AJAX-search request.
     */
    apply_filters( 'alpcf7_metabox_ajax_search_post_types', $post_types, $requested_type, $search );
  • includes/ajax.php line 115
    /**
     * Filters Select2 results produced by the built-in content search.
     */
    apply_filters( 'alpcf7_metabox_ajax_search_results', $results, $query );
  • includes/admin/metabox/fields/ajax_select.php line 155
    /**
     * Filters the label displayed for a saved AJAX-select value.
     */
    apply_filters( 'alpcf7_metabox_ajax_select_label', $label, $value, $this->field );
  • includes/entry-lifecycle.php line 66
    /**
     * Allow dispatch to be disabled for a specific entry/event.
     */
    apply_filters( 'alpcf7_should_dispatch_entry_lifecycle', true, $event, $entry, $context );
  • includes/ajax.php line 691
    /**
     * 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 );
  • includes/admin/entries/single_entry.php line 851 · used in 2 places
    apply_filters( 'alpcf7_entry_date_format', get_option('date_format') . ' \a\t ' . get_option('time_format') );
  • includes/query.php line 93 · used in 2 places
    apply_filters( 'alpcf7_valid_status', self::$valid_statuses );
  • includes/config/addon_manager.php line 84
    apply_filters( 'alpcf7_addon_file_path', $file, $type, $item );
  • includes/fields/address/address.php line 159
    apply_filters( 'alpcf7_address_attributes', $atts, $tag );
  • includes/ajax.php line 625
    apply_filters( 'alpcf7_allowed_settings_keys', ['settings'] );
  • includes/function.php line 1000
    apply_filters( 'alpcf7_countries', $countries );
  • includes/currency.php line 47
    apply_filters( 'alpcf7_currency', $currency, $code, $settings );
  • includes/currency.php line 125
    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... );
  • includes/currency.php line 62
    apply_filters( 'alpcf7_currency_settings', $choices );
  • includes/fields/date-time/date-time.php line 284
    apply_filters( 'alpcf7_datetime_attributes', $atts, $tag );
  • includes/fields/dynamic-text/dynamic-text.php line 226
    apply_filters( 'alpcf7_dynamic_text_attributes', $atts, $tag );
  • includes/fields/dynamic-text/dynamic-text.php line 177
    apply_filters( 'alpcf7_dynamic_text_value', '', $source, $key );
  • includes/entry-lifecycle.php line 29
    apply_filters( 'alpcf7_entry_lifecycle_events', self::EVENTS );
  • includes/capture.php line 31
    apply_filters( 'alpcf7_entry_skip_fields', $skip, $submission, $cf7 );
  • includes/config/extension_list.php line 20
    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' ... );
  • includes/config/field_list.php line 12
    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... );
  • includes/fields/input-mask/input-mask.php line 228
    apply_filters( 'alpcf7_input_mask_attributes', $atts, $tag );
  • includes/config/integration_list.php line 12
    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... );
  • includes/enqueue.php line 148
    apply_filters( 'alpcf7_localize_data', $data, $hook );
  • includes/admin/metabox/metabox_renderer.php line 295
    apply_filters( 'alpcf7_metabox_before_save_option', $metabox_value, $post_id );
  • includes/fields/phone/phone.php line 330
    apply_filters( 'alpcf7_phone_attributes', $atts, $tag );
  • includes/admin/metabox/metabox.php line 16
    apply_filters( 'alpcf7_postmeta_options', $value = array() );
  • includes/function.php line 48
    apply_filters( 'alpcf7_pro_upgrade_url', 'https://pluginscafe.com/alphafields-for-contact-form-7/' );
  • includes/admin/templates/display.php line 120
    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... );
  • includes/extensions/submission-id/submission-id.php line 339
    apply_filters( 'alpcf7_submission_id_value', $value, $number, $form_id, $options );
  • includes/function.php line 746
    apply_filters( 'alpcf7_us_states', $states );
  • includes/admin/templates/sections/dashboard.php line 156
    apply_filters( 'alpcf7_whats_new_url', 'https://pluginscafe.com/alphafields-for-contact-form-7/' );
  • includes/extensions/form-styler/preview.php line 106
    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.

Plugin 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 this

Not 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: