简体   繁体   中英

How to Update Custom Fields Using json API

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

您想使用update post meta。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM