Created
March 23, 2016 20:31
-
-
Save thomasplevy/6a432a6e586a0172961f to your computer and use it in GitHub Desktop.
Change the default country on LifterLMS Country Dropdowns
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
<?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