Use wp_remote_get() with a private or password protected page?
Use wp_remote_get() with a private or password protected page?
Use wp_remote_get() with a private or password protected page?
WP_Insert_Post creating duplicate posts when logged in
Managing and deleting transients with dynamically generated transient names
Simulating timeout is not working
Okay, I figured it out! First, I created a rest endpoint in PHP. https://github.com/bbuilds/ih-top-nurses-block/blob/main/inc/rest.php#L11 The rest point has optional parameters using regex and then in the register_rest_route() callback builds a fetch URL depending on the parameters passed to the WP-REST endpoint. It then fires to the external API wp_remote_get($fetch_url) and dumps the data into the … Read more
Need help creating asynchronous data scraper in WordPress
How does these functions relate to writing file? Do you want to write to file in general or modify functions to accomplish that? Simple approach – do it with PHP, for example with file_put_contents(). However between different hosting configurations this is not always reliable. Actually workflows in WP make real effort to not write any … Read more
I am retrieving this URL ok on my test stack, which means that either: Remote server was having temporary issues. Your server has configuration or other issues. I would try to install Core Control plugin, force different HTTP transports and see if that helps.
If your AJAX is a ‘post’, or for that matter any protocol, to URL2PNG the client is doing so directly. The client isn’t aware of, nor would it honor you server’s proxy configuration. Considering the brief read of URL2PNG docs, placing your API key and password in your JavaScript/jQuery is risky at best since you’d … Read more
Does your server know its own name and/or have loopback connections allowed? Like, if you do a remote get on just the main blog page, does that work? If the server doesn’t know its own name because the DNS doesn’t resolve, or loopback connections are disabled at the server level (these are common “security” measures … Read more