Filter Google Snippet Preview remote request

If you get this error: “401 Authorization Required”, you probably have a basic authentification on your site (ie: htpasswd with login and password).

Use this snippet to solve this by replacing “admin” and “password” by your own credentials.

Hook name: seopress_real_preview_remote

Required version: 3.2.5

Last modified: February 19, 2020