Code Samples

3. Find if any user is online (Helper Code)

    
        if(class_exists('CBXUseronlineHelper')){
            //need core plugin at least 1.2.4
            $user_id = 1 ; // assign user id
            $is_user_online = CBXUseronlineHelper::is_user_online($user_id); // returns true/false
        }