I would like to have only the “Title” and “Planning Budget” show up in the preview. Ideally, I’d like the planning budget to show up with the title “Planning Budget” (example: “Planning Budget: $200”.
Can you please advise how I can customize this preview?
Please try this PHP snippet. Please change your_attribute_field_name in the code snippet on the attribute field name for which you want to make these changes. If you are not familiar with the code customization, then please consider hiring someone for custom work https://fvrr.co/32e7LvY
add_filter(
'hivepress/v1/models/request/attributes',
function($attributes){
// Hide attribute in the request block.
if(isset($attributes['your_attribute_field_name'])){
$attributes['your_attribute_field_name']['display_areas'] = ['view_page_primary'];
}
// Change display format for attribute
if(isset($attributes['your_attribute_field_name'])){
$attributes['your_attribute_field_name']['display_format'] = 'Planning Budget: %value%';
}
return $attributes;
},
1000
);