Create user automatically in Discourse when they sign up in Wordpress?

There isn’t an admin setting, but you can turn it off with a bit of code.

If a site is using the default WordPress login setup, then users shouldn’t be having to reverify their email with Discourse. For sites that are logging users in differently, for example through a front-end login form, verification is required.

There are some security risks in allowing users to create a Discourse account through SSO without first confirming that they control the email address. The biggest risk that I can see is if there are accounts that exist on your Discourse site that are not yet associated with a WordPress user id. For example, if there is an admin account on a Discourse site with the email address admin@example.com that has not been logged into through SSO, a user could create an account through WordPress with the unverified email address admin@example.com and then login to Discourse as that admin user.

To completely remove the require_activation flag, add something like this to your theme’s functions.php file.

// Replace 'my_prefix' with your site prefix.

add_filter( 'discourse_email_verification', 'my_prefix_discourse_email_verification' );
function my_prefix_discourse_email_verification( $require_activation, $user_id ) {
    return false;
}