Home / Admin / Change the redirect URI when using Google App’s OAuth
Duplicate Snippet

Embed Snippet on Your Site

Change the redirect URI when using Google App’s OAuth

If you prefer not to use the default OAuth redirect URI (connect.wpmailsmtp.com) for added security and privacy, you can easily redirect it to your own website. This snippet will allow you to easily change that redirect URI.

Code Preview
php
<?php
/* Change the redirect URI when using Google App's OAuth   
 * 
 * Original doc: https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/
*/
add_filter( 'wp_mail_smtp_providers_gmail_auth_use_self_oauth_redirect_url', '__return_true' );

Comments

Add a Comment