Cool, but have another problem..
For example if I have this lame function:
function thisFunction($user) {
global $database, $wb;
...
$to_user = $wb->add_slashes($user);
return $to_user;
}
In snippet I have $wb->add_slashes($something); and when I use it in backend I get: Fatal error: Call to a member function add_slashes() on a non-object in ---- line where I use $wb->add_slashes
How can I redeclare snippet to use $admin in backend instead $wb

Or is there another way that same function works in FE and BE
cheers