# wpstream/4.5.11/integrations/integrations.php

WpStream – Live Streaming, Video on Demand, Pay Per View, version 4.5.11. 33 lines.

- Page: https://pluginprobe.com/plugins/wpstream/4.5.11/code/integrations/integrations.php
- Raw: https://pluginprobe.com/plugins/wpstream/4.5.11/raw/integrations/integrations.php
- Modified: 2023-02-28T07:51:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpstream/4.5.11/code/integrations/integrations.php#L10-L20`.

```php
<?php

function wpstream_check_integrations() {
    if (class_exists('BuddyPress')) {
        require plugin_dir_path( __FILE__ ) . 'buddyboss/buddyboss.php';    
    }
}




/*
*
* Get live events for logged in user
*
*/

function wpestream_integrations_get_current_user_live_events(){
    $live_event_for_user = get_transient('wpstream_bb_get_live_event_for_user');

    if($live_event_for_user===false){
        $live_event_for_user    =    $wpstream_plugin->main->wpstream_live_connection->wpstream_get_live_event_for_user();
        set_transient('wpstream_bb_get_live_event_for_user',$live_event_for_user,600);
    }

    return $live_event_for_user;
    
}




?>
```
