wp-cron.com
What is valid timing of using current_user_can() and related functions?
During the vanilla WP core load the current user is being set up in $wp-init() which is after theme load and before init hook. This is in line with good practice of functionality getting hooked to …