Skip to content

Instantly share code, notes, and snippets.

@adeel-raza
Created June 9, 2023 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeel-raza/69effe46a121e690856f791b79269242 to your computer and use it in GitHub Desktop.
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
/* 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