I want to use some of the Wordpress API built in functions such as wp_remote_request(). I have tried using this in a php file in my root Wordpress installation but I am just getting an error:
Fatal error: Call to undefined function wp_remote_request() in /home/pacekuwa/public_html/gf.php on line 23
I have a feeling I am not putting my code in the right place or need to include one or more Wordpress files...
Could anyone tell me where I should be putting my code?
I am trying to create a page that makes a remote API call to my Gravity Forms plugin to retrieve submitted form entries using the Gravity Forms Web API. I was trying to follow their example, but don't know where the code they give should go within my installation to get it to work.