Skip to content

Instantly share code, notes, and snippets.

@techies23
Created February 3, 2021 09:48
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/f5e208f9c04dbc7f29ae6571d7642643 to your computer and use it in GitHub Desktop.
Save techies23/f5e208f9c04dbc7f29ae6571d7642643 to your computer and use it in GitHub Desktop.
Change role for WP user. For Video conferencing zoom PRO when registering in a meeting a new user is created role.
//Add below code to your theme's functions.php file
add_filter('vczapi_pro_on_wp_user_create', 'vczapi_change_role');
function vczapi_change_role( $role ) {
$role['role'] = 'your_custom_role';
return $role;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment