Saltar navegación

[Resuelto] Faulty information given on your toolset forms API webpage

This support ticket is created 2 years, 7 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Zona horaria del colaborador: Europe/London (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Nigel 2 years, 7 months ago.

Asistido por: Nigel.

Autor
Mensajes
#2652425

Each hook listed on https://toolset.com/documentation/programmer-reference/cred-api/ has a list of arguments.

While for cred_save_data the associative array key names for $form_data appear to be correct, the respective information for cred_before_save_data is faulty and might capture developers in unnecessary bug hunts:

'form_id' should be 'id' (as presented in the use case below the text)

Apart from that I'd like to suggest a warning added for beginners, that the key names are case sensitive. Won't hurt.

Best regards,

Sven

#2652461

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

Thanks for pointing that out, I have shared that with the documentation team and asked them to update that page.