wp_remote_get() never fires
wp_remote_get() never fires
wp_remote_get() never fires
Should I use transients for these API call results?
Is it possible to load an admin page inside a thickbox?
Please check out this answer to a similar question about regex for getting info from the theme’s style.css. When it comes to the second part of your question – if you are concerned about page load times, you could always use AJAX to get the information about each theme separately. You would display the page … Read more
wp_remote_get was causing the issue and switch over to a curl solution. The code below replaced my old solution: $serverIP = ‘x.x.x.x’; $serviceAPI = ‘/Get_VacationRequest’; $jsonData = urlencode(json_encode($_REQUEST)); // Set up the server information where we will consume the API $url=”http://” . $serverIP . $serviceAPI . ‘?name=” . $jsonData; // Start the curl session $curl … Read more
OK so I was gearing up to do as suggested by @Jacob above and use the offset and limit clauses on the API server. However, this really seemed like logic that should be part of the plugin that I’m making rather than the API queries. As such, I thought I’d look into whether any other … Read more
I would recommend you to separate your data from wp-data. To realize your idea, setup a new data table for time series data. Write a php script to request your data from desired source and create a cronjob. If your hoster does not provide cronjob creation, use a cronjob service. Depending on the amount of … Read more
At the risk of stepping into the unknown, I reckon that you are over-complicating things-full remote access to the WP database sounds like the most effective solution. What could you not do if you had access to the database? Having said that, you have a duty to have done your own research, and to have … Read more
pulling in external JSON search results into WordPress
Just use PHP code, for example : $price = floatval( file_get_contents( ‘http://35.204.111.14/price’ ) ); echo $price; floatval is here to sanitize and assure you to have a float number.