Skip to main content
8 events
when toggle format what by license comment
Feb 9, 2023 at 8:55 comment added Bret Weinraub Shouldn't have to call get_current_user_id, the hook passes the $WP_User object: do_action( 'wp_login', string $user_login, WP_User $user )
Jul 12, 2013 at 9:19 comment added RRikesh I don't know why get_current_user_id() doesn't work, maybe someone else will help us understand that point.
Jul 12, 2013 at 8:28 comment added diligent it works man, but I wonder, why use get_current_user_id() not working, because I have been logon, so it should be get the current user id ? Thanks
Jul 12, 2013 at 8:27 vote accept diligent
Jul 12, 2013 at 8:17 comment added RRikesh I updated my answer
Jul 12, 2013 at 8:16 history edited RRikesh CC BY-SA 3.0
improved answer
Jul 12, 2013 at 8:13 comment added diligent thanks man, yes, need to be add exit. And what's wrong with my first problem, why get_current_user_id() got 0?
Jul 12, 2013 at 7:58 history answered RRikesh CC BY-SA 3.0