Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created March 23, 2016 20:31
Show Gist options
  • Save thomasplevy/6a432a6e586a0172961f to your computer and use it in GitHub Desktop.
Save thomasplevy/6a432a6e586a0172961f to your computer and use it in GitHub Desktop.
Change the default country on LifterLMS Country Dropdowns
<?php // don't copy this line into your functions.php file
// make Great Britain the default country in the country list on LifterLMS Country Selects
add_filter( 'lifterlms_countries', function( $countries ) {
$countires = array_merge( array( 'GB' => $counties['GB'] ) , $countries );
return $countires;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment