Ejemplo n.º 1
0
 public function getAsyncSitesAddress()
 {
     $allSites = wp_get_sites();
     $allAddress = [];
     foreach ($allSites as $site) {
         GMSiteOption::$blog_id = $site['blog_id'];
         $address = GMSiteOption::getAddress();
         if (!empty($address)) {
             $allAddress[] = $address;
         }
     }
     echo json_encode($allAddress);
     exit;
 }
Ejemplo n.º 2
0
 public function getAsyncAddress()
 {
     echo json_encode(GMSiteOption::getAddress());
     exit;
 }