Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.