Disable Welcome Email After Registration for Certain Roles
When you have created a number of custom user roles but would like to disable sending a welcome email to one specific user role, you need to use a custom code. You can try out the following code snippet:
You need to replace the custom-role-id with the actual role ID you would like to prevent the welcome email. If you are unsure about the Role ID, you can check that on wp-admin > ultimate member > User Roles in the Role ID column.
Note: You can add the code snippet to your theme’s functions.php file or use the Code Snippets plugin.
Warning: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.