Disable account activation email with SSO

My WP is SSO provider. I use the plugin Activemember360 with a custom registration page. When they register, they only type name and email. Their password is send to their email. So that’s a way to verify their email?

After that, they also have to verify their email with Discourse. It’s not useful.

Is this code is what I need to disable account activation?

If yes, I don’t know how to do this. Could you help me?

Thanks