Skip Navigation

[Closed] Save post from data on submit on a remote database

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years, 2 months ago.

Author
Posts
#2507247

Tell us what you are trying to do?
Our organization uses multiple databases in a WordPress multisite environment where we need to save post form data that is submitted in the frontend to a non-local (remote) database. We need guidance on how to achieve this using Custom Code Snippets or any other method that you suggest.

Steps:

User fills out a form on our site running on Toolset
On form submission, that form data is stored in another database

Is there any documentation that you are following?
No
Is there a similar example that we can see?
No, that's why I am asking
What is the link to your site?
sandbox.jhatkaa.org

#2507475

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I don't have any advice about saving content in remote databases, I don't know what your setup is and it is not something we can provide support for.

I can point you to our Forms API, though: https://toolset.com/documentation/programmer-reference/cred-api/

You might want to use the cred_save_data hook to trigger your code; that runs just after the submitted post has just been saved to the local database.

If you want to intervene before the data is saved you may want to use the hook cred_before_save_data.

The topic ‘[Closed] Save post from data on submit on a remote database’ is closed to new replies.