> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> > > If I'm writing a plugin and I need to get hold of the currently
> logged in
> > > users email address, what methods do I have to get this?
> >
> > It's a global variable. At the beginning of your function:
> >
> > function someplugin_init
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> > If I'm writing a plugin and I need to get hold of the currently logged in
> > users email address, what methods do I have to get this?
>
> It's a global variable. At the beginning of your function:
>
> function someplugin_init() {
>global $us
> If I'm writing a plugin and I need to get hold of the currently logged in
> users email address, what methods do I have to get this?
It's a global variable. At the beginning of your function:
function someplugin_init() {
global $username;
print "Hi $username. Ostriches run fast.\n";
}
T
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If I'm writing a plugin and I need to get hold of the currently logged in
users email address, what methods do I have to get this?
Cheers,
Mark.
- --
Mark Watts
Senior Systems Engineer
QinetiQ TIM
St Andrews Road, Malvern
GPG Public Key ID: 45542