Is there a hook-independent way to get the logged in member id inside a hook handler?
Something like a function or a global variable?
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityYip. You're looking for:
ee()->session->userdata('member_id');
It's in the session class:
http://ellislab.com/expressionengine/user-guide/development/usage/session.html