How to Update Custom Fields Using json API

193 views Asked by At

Im using json-api plugin in wordpress to connect my DB info to an phonegap app i'm developping, i need help on how to change custom fields array using de update_post from the API.

can anyone give me an example on how to do it, or if it is possible to do it

1

There are 1 answers

2
DubVader On

You want to use update post meta.

update_post_meta($post_id, 'field-name', 'new_value');