Calculated Fields Form 5.6.0.2 has 27 actions and 22 filters, read directly from its source code on Nov 17, 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 Calculated Fields Form fires an action
add_action( 'cpcff_change_payment_status', function( $lu, $status ) {
// Your code runs here.
}, 10, 2 );
// Change a value Calculated Fields Form is about to use
add_filter( 'cpcff_messages_query', function( $events_query ) {
// Change $events_query here.
return $events_query;
}, 10, 1 );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
-
/** * Allows modify the query of messages, passing the query as parameter returns * the new query */ apply_filters( 'cpcff_messages_query', $events_query ); -
/** * Action called after change the payment status of event The event's id and * new payment's status are passed as parameters */ do_action( 'cpcff_change_payment_status', $lu, $status ); -
/** * Passes as parameter the original form's id, and the new form's id */ do_action( 'cpcff_clone_form', $id, $cloned_form->get_id() ); -
/** * Action called when a submission is deleted, the submission ID is passed as * parameter */ do_action( 'cpcff_delete_submission', $submission_id ); -
/** * Action called when the file is uploaded, the file's data is passed as * parameter */ do_action( 'cpcff_file_uploaded', $movefile, array( 'names' => &$files_names_arr, 'links' => &$files_links_arr, 'urls' => &$files_urls_arr, 'formid' => $form_obj->get_id(), 'params' => &$list, 'item' => $field_name, 'index' => $f ) ); -
/** * Action called after processing the data. To the function is passed an array * with submitted data. */ do_action_ref_array( 'cpcff_free_process_data', array(&$params) ); -
/** * Action called before insert the data into database. To the function is * passed an array with submitted data. */ do_action_ref_array( 'cpcff_free_process_data_before_insert', array(&$params, &$buffer, $fields) ); -
/** * Filters applied before returning a form option, use three parameters: The * value of option, the name of option and the form's id returns the new * option's value */ apply_filters( 'cpcff_get_option', $value, $option, $this->_id ); -
/** * Filters the host names allowed to reach the MCP endpoint. */ apply_filters( 'cpcff_mcp_allowed_origins', array_filter( array_unique( $allowed ) ) ); -
/** * Action called to add related data to the message The row is passed as * parameter */ do_action( 'cpcff_message_row_data', $event ); -
/** * Additional filtering options, allows to add new fields for filtering the * results */ do_action( 'cpcff_messages_filters' ); -
/** * Action called to include new headers in the table of messages */ do_action( 'cpcff_messages_list_header' ); -
/** * Filters applied before generate the form, is passed as parameter an array * with the forms attributes, and return the list of attributes */ apply_filters( 'cpcff_pre_form', $atts ); -
/** * Filters applied to decide if the website should be redirected to the thank * you page after submit the form, pass a boolean as parameter and returns a * boolean */ apply_filters( 'cpcff_redirect', $redirect ); -
/** * Filters applied after generate the form, is passed as parameter the HTML * code of the form with the corresponding <LINK> and <SCRIPT> tags, and * returns the HTML code to includes in the webpage */ apply_filters( 'cpcff_the_form', $content, $atts['id'] ); -
/** * Action called when a submission is updated, the submission ID is passed as * parameter */ do_action( 'cpcff_update_submission', $submission_id ); -
apply_filters( 'cpcff_forms_edition_capability', 'manage_options' ); -
do_action( 'cff_admin_state_changed', 'addons_active_change' ); -
apply_filters( 'cpcff_agent_form_preview_ttl', self::DEFAULT_TTL ); -
apply_filters( 'cpcff_count_messages_query', $counter_events_query ); -
apply_filters( 'cpcff_form_preview_resources', '' ); -
do_action( 'cpcff_additional_admin_scripts' ); -
do_action( 'cpcff_additional_submissions_actions', $_GET ); -
apply_filters( 'cpcff_admin_get_option', $value, $option, $this->_id ); -
apply_filters( 'cpcff_custom_tags', $text, $postid ); -
do_action( 'cpcff_delete_form', $id ); -
do_action( 'cpcff_form_payment_gateways_settings', CP_CALCULATEDFIELDSF_ID ); -
do_action( 'cpcff_form_settings', CP_CALCULATEDFIELDSF_ID ); -
apply_filters( 'cpcff_get_extra_form_settings', [ 'check_request_cost', 'request_cost_check_by_sum', 'request_cost_sum', 'request_cost_equation', 'is_cost_equation_valid', 'enable_pay_later', 'fp_attach_static', 'fp_reply_to_emails', 'cu_attach_static', 'cu_reply_to_emails', 'form_height', 'fp_ajax', 'fp_ajax_reset_form', 'fp_thanks_mssg', 'fp_disable_submissions', 'cv_captcha_method', 'cv_captcha_math_complexity' ], $this->_id ); -
do_action( 'cpcff_load_controls_admin' ); -
do_action( 'cpcff_load_controls_public' ); -
apply_filters( 'cpcff_mcp_create_password_timeout', 25000 ); -
do_action( 'cpcff_message_additional_details', $event ); -
apply_filters( 'cpcff_message_row_buttons', $buttons, $event ); -
apply_filters( 'cpcff_notification_email_message', $email_data[ 'text' ], $submission_id ); -
apply_filters( 'cpcff_notification_email_subject', $subject[ 'text' ], $submission_id ); -
do_action( 'cpcff_payment_processed', $params ); -
apply_filters( 'cpcff_price', $price, $params ); -
apply_filters( 'cpcff_price_check_equation_operands', array(), $form_obj ); -
apply_filters( 'cpcff_price_sum_payload_max_bytes', 1024 * 1024, self::$form_obj ); -
apply_filters( 'cpcff_save_extra_form_settings', $extra, $params, $this->_id ); -
apply_filters( 'cpcff_send_notification_email', true, $submission_obj, $form_obj ); -
do_action( 'cpcff_wp_head', ( ! empty( $atts['shortcode_atts']['id'] ) ? $atts['shortcode_atts']['id'] : 0 ) ); -
do_action( 'litespeed_control_set_nocache', 'nocache CFF Form' ); -
do_action( 'litespeed_purge_all_object' ); -
do_action( 'wp_enqueue_scripts' );
Generated from Calculated Fields Form'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: