Skip Navigation

[Resolved] Update CPT Custom Fields via Rest API

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am attempting to update a Custom Post Type's custom fields using the WP Rest API with the toolset-meta object, but I cannot find documentation on how to perform a PUT operation.

Solution:

The Toolset wrapper for custom fields does not support editing via the Rest API. Use native WordPress functions to access and update the custom fields, just like any other native WordPress field.

Relevant Documentation:

https://developer.wordpress.org/rest-api/

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.

Our next available supporter will start replying to tickets in about 2.61 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 3 months, 1 week ago.

Assisted by: Christopher Amirian.

Author
Posts
#2720099

I am attempting to update a CPT's custom fields using the WP Rest API and the toolset-meta object. I have not been able to find documentation on how to perform a PUT operation. Please advise.

#2720701

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

The Toolset wrapper for the custom fields does not support the edit functionality via Rest API.

You will need to use the native WordPress functions to access the fields and update them like any other native custom WordPress field.

Thanks.