Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function lang_object_ids($ids_array, $type) {
- if(function_exists('icl_object_id')) {
- $res = array();
- foreach ($ids_array as $id) {
- $xlat = icl_object_id($id,$type,false);
- if(!is_null($xlat)) $res[] = $xlat;
- }
- return $res;
- } else {
- return $ids_array;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement