Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('http_request_args', function($r){
- // Check if it is a prebuild request
- if (isset($r['headers']['X-PREBUILD'])) {
- $user = 'YOUR_USERNAME';
- $password = 'YOUR_PASSWORD';
- $r['headers']['Authorization'] = 'Basic ' . base64_encode( $user . ':' . $password );
- }
- return $r;
- });
Add Comment
Please, Sign In to add comment