Saltar navegación

[Resuelto] REST API update and create new toolset-meta items

This support ticket is created 4 years, 5 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Luo Yang 4 years, 5 months ago.

Asistido por: Luo Yang.

Autor
Mensajes
#2251579

Tell us what you are trying to do?
I would to update and create data of my wordpress, by using API REST and external script.

The GET request work, I can see all the toolset-meta, however PUT or POST not work, I receive a 200 response code, but no change.

Is there any documentation that you are following?
I try to follow your documentation https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/ , however I don't know wich files need to be edited to add
toolset_rest_expose_field_group
toolset_rest_expose_field

#2251955

Hello,

You can follow that document to setup the custom PHP codes:

add_filter( 'toolset_rest_run_exposure_filters', '__return_true' );

and put your custom PHP codes into bottom of your website theme file "functions.php"