use new list of countries and adapt backend and frontend to it

This commit is contained in:
GotPPay
2018-09-13 05:50:10 +02:00
committed by Bilal Catic
parent 5d91576fb7
commit b93aed107b
4 changed files with 28 additions and 47 deletions

View File

@@ -9,7 +9,7 @@ class Wiass_REST_User_API {
private static $namespace = 'wiaas';
public function __construct() {
include_once dirname( __FILE__ ) . '/user/class-wiaas-user-profile.php';
include_once dirname( __FILE__ ) . '/../class-wiaas-countries.php';
}
@@ -43,7 +43,7 @@ class Wiass_REST_User_API {
}
public static function get_countries(){
$countries = Wiaas_User_Profile::get_list_of_countries();
$countries = Wiaas_Countries::get_list_of_countries();
return new WP_REST_Response($countries);
}