• Duog Hien Phu

    (@duog-hien-phu)


    hello all:
    I want to update custom field but i try
    /api/posts/update_post/?id=2198&nonce=25b8e7ea73&post_type=course&custom_fields=_course_rating&custom_fields__course_rating=4]

    OR

    /api/posts/update_post/?id=2198&nonce=25b8e7ea73&post_type=course&_course_rating=4

    Failed
    please help!
    Thanks

    https://wordpress.org/plugins/json-api/

Viewing 1 replies (of 1 total)
  • Bob Gregor

    (@bobbravo2)

    I don’t see custom field support in the update post method documentation. You’ll need to extend that code to write the custom fields inside of your plugin/theme.
    IE: add_action('json_api-core-update_post', 'save_my_custom_meta_value_function');

Viewing 1 replies (of 1 total)
  • The topic ‘Update custom fields in post’ is closed to new replies.