Filter Google Snippet Preview remote request

Since SEOPress 3.2.5

function sp_real_preview_remote($args) {
//default: $args = array('blocking' => true,'timeout'  => 5,'cookies'  => $cookies);

$args['headers'] = array('Authorization' => 'Basic ' . base64_encode( 'admin' . ':' . 'password' ));
return $args;
}
add_filter('seopress_real_preview_remote', 'sp_real_preview_remote');

Last modified: December 12, 2018