Make details optional for marketplace offers

Hello,

how to make the Details field optional for Offers? Thanks

make-details-optional

Please try this PHP snippet but please note that it can require further customization and additional testing

add_filter( 
	'hivepress/v1/models/offer',
	function ($model){
		$model['fields']['text']['required'] = false;
		return $model;
	},
	1000
);
2 Likes

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