/**
  *
  * get post types with categories for client side.
  */
 public static function getPostTypesWithCatsForClient()
 {
     $arrPostTypes = UniteFunctionsWPBiz::getPostTypesWithCats();
     $globalCounter = 0;
     $arrOutput = array();
     foreach ($arrPostTypes as $postType => $arrTaxWithCats) {
         $arrCats = array();
         foreach ($arrTaxWithCats as $tax) {
             $taxName = $tax["name"];
             $taxTitle = $tax["title"];
             $globalCounter++;
             $arrCats["option_disabled_" . $globalCounter] = "---- {$taxTitle} ----";
             foreach ($tax["cats"] as $catID => $catTitle) {
                 $arrCats["{$taxName}_{$catID}"] = $catTitle;
             }
         }
         //loop tax
         $arrOutput[$postType] = $arrCats;
     }
     //loop types
     return $arrOutput;
 }