Add request after vendor created

Hi,

I’m trying to send a request after I create a Vendor. It has all info of my Vendor profile, and I want to send that info to an API, I’m trying to use this webhook:

add_action('hivepress/v1/models/vendor/create', 'addPartnerMagni');
function addPartnerMagni( $vendor_id, $vendor ) {
 error_log('Function to call addPartnerMagni');
 remove_action('hivepress/v1/models/vendor/create', 'addPartnerMagni');
}

I’m trying to write something to logs, but no luck, can you help me please?
Regards

Hi,

Please try to use this hook: hivepress/v1/models/vendor/update_status, and then you need to use it to check when the new status is “publish.”

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