rename_function('json_decode', 'old_json_decode'); override_function('json_decode', '$data', 'return new_json_decode($data);'); function new_json_decode($data) { return old_json_decode($data, true, JSON_UNESCAPED_UNICODE); }