Hello! We need to make the ‘Extras’ section required for vendors to input when creating a listing. Is this possible? Thanks in advance!
Please try this PHP snippet
add_filter(
'hivepress/v1/models/listing/attributes',
function($attributes){
if(isset($attributes['price_extras'])){
$attributes['price_extras']['edit_field']['required'] = true;
}
return $attributes;
},
1000
);
That worked perfectly, thank you all!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.