Vendors ID confirmations

You can try this code snippet:

add_filter(
	'hivepress/v1/models/vendor/fields',
	function( $fields, $model ) {
		$checked = get_post_meta( $model->get_id(), 'hp_doc_checked', true );

		if ( $checked ) {
			$fields['doc']['required'] = false;
		}

		return $fields;
	},
	1000,
	2
);

add_filter(
	'hivepress/v1/forms/vendor_update',
	function( $form_args, $form ) {
		$vendor = $form->get_model();

		if ( $vendor->is_doc_checked() ) {
			unset( $form_args['fields']['doc'] );
		}

		return $form_args;
	},
	1000,
	2
);

This approach requires a new checkbox attribute with “doc_checked” field name (don’t make it Editable so only admins will be able to check it). In the snippet, the attachment field name is “doc”, please replace it if it’s different. Once you check the document and delete it, please tick the checkbox to mark verified vendor this way. This will hide the attachment field from all the front-end forms.

Hope this helps