Auto approve a user on registration in WP Admin

Ultimate Member provides an option to control the action of the role when a new user registers on your site. To see the option go to Ultimate Member > User Roles> Edit Role> Registration Options


You need to use a custom code to approve users created by admins using the wp-admin interface automatically. 
The sample code below will not require email approval, admin review, or put an account on pending status.