prefix}icl_languages ADD COLUMN encode_url TINYINT(1) NOT NULL DEFAULT 0"; $wpdb->query($sql); $encurls = array('ru', 'uk', 'zh-hans', 'zh-hant', 'ja', 'ko', 'vi', 'th', 'he', 'ar', 'el', 'fa'); $sql = "UPDATE {$wpdb->prefix}icl_languages SET encode_url = 1 WHERE code IN ('" . join("','", $encurls) . "')"; $wpdb->query($sql);