Created
January 22, 2018 07:10
-
-
Save anonymous/d763dbd39ea993184afcaeb2461c44e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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