Skip to content

Instantly share code, notes, and snippets.

@davebonds
Created January 5, 2016 19:51
Show Gist options
  • Save davebonds/364120eaa1cc50bf72f6 to your computer and use it in GitHub Desktop.
Save davebonds/364120eaa1cc50bf72f6 to your computer and use it in GitHub Desktop.
Filter the domain sent in an Equity -> IDX API call
add_filter('equity_idx_api_domain', 'my_domain_spoof');
function my_domain_spoof() {
$domain = 'http://www.THEIDXDOMAIN.com';
return $domain;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment