Skip to content

Instantly share code, notes, and snippets.

@techies23
Created February 25, 2021 07:34
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 techies23/02aee51835fd785896e97567113b95d3 to your computer and use it in GitHub Desktop.
Save techies23/02aee51835fd785896e97567113b95d3 to your computer and use it in GitHub Desktop.
Directly letting users join meeting via browser without further interaction.
<?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