PluginProbe
WpStream – Live Streaming, Video on Demand, Pay Per View / 4.5.3
WpStream – Live Streaming, Video on Demand, Pay Per View v4.5.3
4.14.1 4.14.0 4.13.2 4.13.1 4.13 4.12.5 4.12.4 4.12.3 4.12.2 4.12.1 4.12 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5 4.5.1 4.5.11 4.5.11.1 4.5.11.2 4.5.11.4 4.5.11.5 4.5.11.6 All 181 releases
wpstream / integrations / integrations.php

integrations.php in WpStream – Live Streaming, Video on Demand, Pay Per View 4.5.3, at integrations/integrations.php

33 lines 670 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 function wpstream_check_integrations() {
4 if (class_exists('BuddyPress')) {
5 require plugin_dir_path( __FILE__ ) . 'buddyboss/buddyboss.php';
6 }
7 }
8
9
10
11
12 /*
13 *
14 * Get live events for logged in user
15 *
16 */
17
18 function wpestream_integrations_get_current_user_live_events(){
19 $live_event_for_user = get_transient('wpstream_bb_get_live_event_for_user');
20
21 if($live_event_for_user===false){
22 $live_event_for_user = $wpstream_plugin->main->wpstream_live_connection->wpstream_get_live_event_for_user();
23 set_transient('wpstream_bb_get_live_event_for_user',$live_event_for_user,600);
24 }
25
26 return $live_event_for_user;
27
28 }
29
30
31
32
33 ?>