Action Trigger for Files Updates on User Dashboard

Hi there,
similar to my request regarding accessing files uploaded in the submission form, what is the trigger, if any, for files uploaded or updated on the user dashboard once an user has become a vendor and wants to update a file?

And can I from there extract information such as vendor ID?

Hi,

It all depends on the field, but you can use the following hooks:

hivepress/v1/models/user/update_{field_name}
hivepress/v1/models/vendor/update_{field_name}

​I hope this is helpful to you.

Great, thanks this is perfect.
Now just one question, is there a query to get a vendor status, e.g. published, draft, etc.?

Hi,

Unfortunately, it is not quite clear what kind of query you are referring to, so please provide more details. Also, please note that if you use this hook, the parameters are old status, new status, and vendor object, from which you can fetch any data.

My idea was to filter that the vendor is actually published, but I realised that the vendor actually exists even before the vendor submit form is submitted, so in this case I don’t need to filter on the vendor status. All good, fixed it! Thanks for the input!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.