Forums
(@adhocracy)
12 years, 7 months ago
Very strange.
It now works. Perhaps I am going mad.
$current_user->ID + a server restart did it.
Thanks everyone.
Thanks bcworkz, just tried it but it doesn’t work. Either. $current_user appears to be empty inside the function.
If I put ‘echo($current_user->ID)’ outside the function it works.
I am stumped on this one.
Any other ideas?