Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created May 5, 2020 17:57
Show Gist options
  • Save kimcoleman/b52dc4d1ae88d5f213d111e5d44cd4fa to your computer and use it in GitHub Desktop.
Save kimcoleman/b52dc4d1ae88d5f213d111e5d44cd4fa to your computer and use it in GitHub Desktop.
Get array of settings needed to make API calls.
<?php
/**
* Get array of settings needed to make API calls.
*
* Update the remotesite, APIUSER, and APIPASS settings
* as required for the remote site you will be testing against.
*/
function pmprorad_get_options() {
return array(
'localsite' => site_url(),
'remotesite' => 'https://www.yourdomain.com',
'APIUSER' => 'yourusername',
'APIPASS' => 'gEkU PlKj bnkC 3rdM aPn2 7NT9',
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment