Is there a way to auto verify vendors?

Is there a way to auto verify vendors?? The check box [Verified Vendor] in the vendors tab, I would like to have this checked for everyone automatically. We manually approved everyone before they onboard, so they are all verified.

Hi,

For new vendors, this is possible, but it will require a custom implementation (PHP snippet).

As for the vendors that have already been created, unfortunately, there is no such possibility, you can only manually set the verified status.

That is fine, that snippet would be great! Thank you!

Please try this PHP code snippet.

add_action(
	'hivepress/v1/models/vendor/create', 
	function($vendor_id) {
		update_post_meta($vendor_id, 'hp_verified', true);
	},
	1000
);

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