HRM Work Tracking, stop tracking on logout

I’ve been asked: “Hello, is it possible to begin tracking time when the user logs in automatically and stop tracking time when the user logs out automatically with the HRM Work Tracking plugin? Thanks”

The answer is yes.
You need to find the file hrm-work-tracking.php and add the following code before the end of the file which is ending with”?>”

function user_stops_to_work_on_logout(){
global $current_user;
add_action('wp_logout', 'user_stops_to_work_on_logout');