Do something after a form was submitted

Documentation Menu

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

Integrate with AffiliateWP

Was this article helpful?

Yes (1) No

We're sorry to see this article wasn't as helpful as we hoped it would be. Please let us know what you were looking for so that we can improve this documentation page.

Full CTA BG