Created
June 9, 2023 14:20
-
-
Save adeel-raza/69effe46a121e690856f791b79269242 to your computer and use it in GitHub Desktop.
Disable Video and Audio sharing for participants in a BigBlueButton Room in Virtual Classroom with WordPress plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add the below code snippet to your child theme's functions.php file */ | |
/* Disable Video and Audio sharing for participants in a BBB Room */ | |
add_filter( 'virtual_classroom_pro_join_params', 'virtual_classroom_pro_custom_join_params' ); | |
function virtual_classroom_pro_custom_join_params( $params ) { | |
$params['userdata-bbb_force_listen_only'] = true; | |
if ( ! $params['isMod'] ) { | |
$params['userdata-bbb_enable_video'] = false; | |
} | |
return $params; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment