Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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