Redirect user to author page instead of UM user profile page

By default, WordPress creates an author page. However, once you activate the Ultimate Member plugin the default settings will change and once you visit the author page, it will automatically redirect to UM user profile page. To disable it you have to uncheck the box on wp-admin> Ultimate Member> Settings> General> Users

If you want to reverse the function, and wish to redirect users to the author page, you can try this code:


With this, you will be able to redirect user Profile links in the UM Members Directory to User Author page links.