For the complete documentation index, see llms.txt. This page is also available as Markdown.

acpt/save_form

Fires when a front-end form submission is received, before it is validated and saved

Type: Action

Fires when a visitor submits one of your front-end forms, as soon as ACPT has read and sanitized the submitted values: before validation, before any permission check and before anything is saved.

To allow or reject a submission, use acpt/form/authorize_submission and acpt/form/authorize_field instead: they run after validation and can stop the submission before any data is written.

Parameters

Parameter
Type
Description

$command

HandleFormSubmissionCommand

The command instance that processed the submission

$form

FormModel

The form that was submitted

Usage

add_action("acpt/save_form", function(HandleFormSubmissionCommand $command, FormModel $form){
    // do something with the submitted data
}, 10, 2);

Last updated