How to post data via webook using WP Webhooks plugin

Support MB Group How to post data via webook using WP Webhooks pluginResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28976
    James Joseph FinnJames Joseph Finn
    Participant

    Hello,

    I understand that this is outside the scope of support, but I am lost, and thought to drop in here, that perhaps you could point me in the right direction.

    I posted here in the "Groups" extension forum, but I am having trouble posting to all custom fields, not just grouped fields, including also relationship fields and image fields.

    I am using WP Webhooks plugin, and am attempting to access the fields by using the field ID.

    However, when attempting to feed data into the field ID, nothing is posted. Whether it is a text field, image field, grouped field, or relationship field.

    Lastly, I expect that grouped fields would be the most tricky, as the quantity is variable, so how to post the unique values per group?

    Thanks to anyone who can point me in the right direction!

    #28988
    Long NguyenLong Nguyen
    Moderator

    Hi James,

    If the WP Webhooks plugin works with post meta (meta key and meta value), it will update the field value based on the field ID. Follow on this topic https://wordpress.org/support/topic/write-to-custom-fields/

    There is no prebuilt option to check the unique value of subfields per group.

    #34203
    Jannis ThuemmigJannis Thuemmig
    Participant

    Hey James,

    Yes, WP Webhooks also supports most of the Metabox features.
    To make it work, you can use the manage_meta_data argument, which is available with the create_post and update_post webhook actions.

    This argument supports a JSON formatted string, containing al lof the meta data you want to add or update. For convenience, there is a meta value generator (specifically for the manage_meta_data argument) available here: https://wp-webhooks.com/blog/how-to-update-custom-post-meta-values-with-wp-webhooks/

    Please note: To make it work, you need the meta key of the meta value you would like to update. If you want to add multiple meta entries with the same meta_key, you can change the update_post_meta key to add_post_meta. If you want to add or update a meta value, simply use update_meta_data. To delete meta values, use delete_meta_data.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.