I want here to write and have a list with the countries to be verify , because now i can write anything.
Thank you
Thank you
Please try to add a select type listing attribute where it is possible to add countries manually as new options or with this code snippet
add_filter(
'hivepress/v1/models/listing/attributes',
function ($attributes){
if(isset($attributes['custom_country'])){
$attributes['custom_country']['edit_field']['options'] = [
// countries array elements.
];
$attributes['custom_country']['edit_field']['option_args'] = [];
}
return $attributes;
},
1000
);
If you are not familiar with code customization then please consider hiring someone for custom work https://fvrr.co/32e7LvY
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.