Skip to content

Instantly share code, notes, and snippets.

Created January 22, 2018 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d763dbd39ea993184afcaeb2461c44e3 to your computer and use it in GitHub Desktop.
Save anonymous/d763dbd39ea993184afcaeb2461c44e3 to your computer and use it in GitHub Desktop.
function wp_travel_customize_default_country_setting(){
if ( ! is_singular('itineraries') ) {
return;
}
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#wp-travel-country option[value="US"]').attr("selected",true);
});
</script>
<?php
}
add_action( 'wp_footer', 'wp_travel_customize_default_country_setting', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment