Hi @ahmadzkhaled,
Thank you for reaching out to us and I hope you are doing good today.
The following code snippet can help with removing a country from the list.
function wpmudev_filter_countries( $countries ){
foreach ($countries as $key => $value) {
if( $value ['value'] == 'KR' ){ //check if the country is Republic of South Korea
unset($countries[$key]); //Remove the country from the list
}
}
return $countries;
}
add_filter( 'forminator_countries_field', 'wpmudev_filter_countries', 10, 1 );
I hope that helps you to proceed further.
Kind Regards,
Nebu John