How to avoid redirect 302 in wordpress to the author pages?

but what I see are answers to how to make a snippet for a redirect but not to avoid it.

That’s because you can’t. If we could turn wp_safe_redirect or wp_redirect into a non-operation and disable it, the next statement is always exit; which ends the request. The result here would be that your author archives have no HTML and the browser displays a blank screen. At most you might be able to change where it redirects to, but disabling the redirect via hooks and filters is not an available option.

For this reason, a snippet cannot work. Unless your theme provides a filter to toggle this behaviour, there is nothing to hook into. Based on the code you shared, this theme has not done that.

So to fix this, you have 3 options:

  1. Modify the theme to remove the redirect
  2. Use a child theme that replaces author.php with a version that removes the redirect
  3. Petition the theme vendor to remove this or provide a setting to toggle it, and wait for the update

Options 2 and 3 would be best practice.