Hi,
Thanks for showing your interest in WP Crowdfunding fundraiser plugin.
That is not possible to restrict the country. I can help you where’s the file located but I can’t assist with customization.
Go to modify this file: /wp-content/plugins/wp-crowdfunding/shortcode/Submit_Form.php
Here is the country and location code:
//Country
$html .= '<div class="wpneo-single">';
$html .= '<div class="wpneo-name">'.__( "Country" , "wp-crowdfunding" ).'</div>';
$html .= '<div class="wpneo-fields">';
$countries_obj = new \WC_Countries();
$countries = $countries_obj->__get('countries');
array_unshift($countries, __('Select a country', 'wp-crowdfunding') );
$html .= '<select name="wpneo-form-country">';
foreach ($countries as $key=>$value) {
if( $country==$key ){
$html .= '<option selected="selected" value="'.$key.'">'.$value.'</option>';
}else{
$html .= '<option value="'.$key.'">'.$value.'</option>';
}
}
$html .= '</select>';
$html .= '<small>'.__("Select your country","wp-crowdfunding").'</small>';
$html .= '</div>';
$html .= '</div>';
//Location
$html .= '<div class="wpneo-single">';
$html .= '<div class="wpneo-name">'.__( "Location" , "wp-crowdfunding" ).'</div>';
$html .= '<div class="wpneo-fields">';
$html .= '<input type="text" name="wpneo-form-location" value="'.$location.'" >';
$html .= '<small>'.__("Put the campaign location here","wp-crowdfunding").'</small>';
$html .= '</div>';
$html .= '</div>';
Let me know if you have any other questions 🙂
[ Signature deleted ]