Is it possible to make a vendor attribute not editable?

Is it possible to make a vendor attribute not editable, but to only have it when they try to list their first listing?

I want to have an attribute which the vendors can fill out when they are completing their profile, but they shouldn’t see this attribute at profile settings.

Thanks a lot in advance

Thank you for waiting. Please try this PHP code snippet. Please change put_attribute_field_name on the attribute field name you want to hide in the profile settings form.

add_filter(
	'hivepress/v1/forms/user_update',
	function($args, $form){
		if('user_edit_settings_page' !== hivepress()->router->get_current_route_name()){
			return $args;
		}
		
		unset($args['fields']['put_attribute_field_name']);
		
		return $args;
	},
	1000,
	2
);

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