Navigation überspringen

[Gelöst] Cred CRED Form Programatically

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 5 Jahren, 9 Monaten. 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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von alexG-4 vor 5 Jahren, 9 Monaten.

Assistiert von: Shane.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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.