Last active
August 29, 2015 14:04
-
-
Save jchristopher/25f9a5a7f26b06bf4ab5 to your computer and use it in GitHub Desktop.
Provide SearchWP the necessary HTTP Basic Authentication credentials for the indexer to work in that environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_searchwp_basic_auth_creds() { | |
// NOTE: this needs to be your HTTP BASIC AUTH login | |
// | |
// *** NOT *** your WordPress login | |
// | |
// | |
$credentials = array( | |
'username' => 'my_username', // the HTTP BASIC AUTH username | |
'password' => 'my_password' // the HTTP BASIC AUTH password | |
); | |
return $credentials; | |
} | |
add_filter( 'searchwp_basic_auth_creds', 'my_searchwp_basic_auth_creds' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment