Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Checkbox for removing “Other Countries”

$
0
0

Replies: 1

Hi,

I’m only selling to 2 specific countries, so didn’t want the “Other Countries” option in the dropdown.

I’ve done that by changing \templates\country-selector.php line 36 to:

if( $value!="Other countries"):?>
   <option value="<?php echo $key?>" <?php echo selected($key, $selected_country ); ?> >
   <?php echo $value; ?></option>
<?php endif; ?>

…but is it possible to get this added as a checkbox option so I don’t need to do it each time the plugin is updated?


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>