Title: current user id
Last modified: May 28, 2021

---

# current user id

 *  Resolved [saurabhdeveloper](https://wordpress.org/support/users/saurabhdeveloper/)
 * (@saurabhdeveloper)
 * [5 years ago](https://wordpress.org/support/topic/current-user-id/)
 * In custom hook used in cron job unable to get current user id.
    it is returning
   0

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [5 years ago](https://wordpress.org/support/topic/current-user-id/#post-14494299)
 * Sorry but I’m unable to assist with writing cron events, it would be a full time
   job for me. Please try in the main support forums or Stack Overflow.

Viewing 1 replies (of 1 total)

The topic ‘current user id’ is closed to new replies.

 * ![](https://ps.w.org/wp-crontrol/assets/icon.svg?rev=3539529)
 * [WP Crontrol](https://wordpress.org/plugins/wp-crontrol/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-crontrol/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-crontrol/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-crontrol/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-crontrol/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-crontrol/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/current-user-id/#post-14494299)
 * Status: resolved