$id
$id : integer
Holds User ID.
Class Log_Author.
get_role() : string
Tries to find a label for the record's user_role.
If the user_role exists, use the label associated with it.
Otherwise, if there is a user role label stored as Log meta then use that. Otherwise, if the user exists, use the label associated with their current role. Otherwise, use the role slug as the label.
is_doing_wp_cron() : boolean
Check if the current request is part of a WP cron task.
Note: This will return true for all manual or custom cron runs even if the default front-end cron is disabled.
We're not using wp_doing_cron()
since it was introduced
only in WordPress 4.8.0.