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
Is WP Booking System a good fit for you?

Tell us about your business activity & plugin requirements and we'll let you know if WP Booking System is right for you.

Have a support question? Please use this form instead.