Do something after a form was submitted
If you want to send data to another platform or call an API to pass on the booking data, you can use hook into the form submission action.
Syntax
add_action('wpbs_submit_form_end', 'your_function', 10, 1);
The function accepts 1 parameter, the newly created booking id.
Example