Created
February 25, 2021 07:34
-
-
Save techies23/02aee51835fd785896e97567113b95d3 to your computer and use it in GitHub Desktop.
Directly letting users join meeting via browser without further interaction.
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
<?php | |
/** | |
* Paste below code to your functions.php file in your theme. | |
* | |
* NOTE: If user is not logged in this code will not work because when joining a meeting from browser - User name is a required field and since | |
* this below code directly triggers the join button on load. Users will not be able to join the meeting without a name. | |
* | |
* The reason this would work with logged in users is because username is already selected in the join via browser page if a user is logged in. | |
*/ | |
add_action( 'vczapi_join_via_browser_after_script_load', function () { | |
?> | |
<script> | |
jQuery(function($) { | |
setTimeout(function() { | |
$('#vczapi-zoom-browser-meeting-join-mtg').trigger('click'); | |
}, 500); | |
}); | |
</script> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment