Пример #1
0
 /**
  * 
  * get default language id of tag / category
  */
 public static function getIdFromLangId($id, $type = 'category')
 {
     if (self::isWpmlExists()) {
         $lang = UniteFunctionsWPBiz::getCurrentLangCode();
         $real_id = icl_object_id($id, $type, true, $lang);
         return $real_id;
     } else {
         return $id;
     }
 }