Sauter la navigation

[Résolu] Cred CRED Form Programatically

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user wanted to know if it was possible to create a Cred from programatically.

Solution:

Unfortunately no this one is not possible to do.

This support ticket is created Il y a 5 années et 8 mois. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : 

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par alexG-4 Il y a 5 années et 8 mois.

Assisté par: Shane.

Auteur
Publications
#1242275

I need to be able to create CRED forms programatically: this will save me a huge amount of time building and maintaining my sites.

In my testing, I've created a replica of an existing form (with a different name and slug) using PHP. Looking at the post array, it looks fine. However, this form does not appear in the Post Forms listing, and I get the message "Permission denied" when I try to display it.

Is there another step I need to take after creating the post?

Alex

#1242289

Hmmm....

What I didn't do is check/replicate the metadata of forms.

I can see there are several fields/arrays of metadata.

Is the documentation of this available anywhere?

#1242338

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Alex,

Thanks for getting in touch.

Happy you were able to make some progress on this .

However we don't have any documentation on this since the post forms weren't meant to be created like this. The only thing we have is an API document for the hooks for the form submissions.

Thanks,
Shane

#1242404

That's what I was afraid of, but thanks for confirming.