@Mega Thanks Mega!
I know this can work, I expect the formal release for this.😏
Getting logged in uid
Is there a clean way to get the currently logged in user's uid from a plugin? A search didn't seem to turn up a consensus.
@bbb in what context? A hook? A route handler? A client side script?
A hook. Specifically, action:post.setFields at the moment, but I'll need it for other hooks as well.
@pitaj Im also searching for how to get the current uid for use in a plugin hook method.
Depending on the plugin hook, the
uidis included in the payload.