Created
February 3, 2021 09:48
-
-
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.
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
//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