wp_remote_post vs curl to send data in WordPress plugin
wp_remote_post vs curl to send data in WordPress plugin
wp_remote_post vs curl to send data in WordPress plugin
Excerpt from the Shortcode API handbook (italic formatting added by me): The return value of a shortcode handler function is inserted into the post content output in place of the shortcode macro. Remember to use return and not echo – anything that is echoed will be output to the browser, but it won’t appear in … Read more
rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
cURL error 28: SSL connection timeout while can download the plugin file
Blocking the direct access to images in the upload folder WordPress
So it looks like I’ve managed to fix my own problem here. I don’t know if this is the best thinkable solution to this exact problem, but it does work! My assumptions about CURLOPT_FOLLOWLOCATION seem correct. As Sally CJ also explained in the comments, the default setting in WP is always set to false. That’s … Read more
Transients seem to be appropriate storage. Just note that if you will generate a lot of this and they will be disposable then you will need to cleanup old transients. As for your cURL/filename issue – it is bad practice to use cURL directly in WordPress. WP provides HTTP API that abstracts remote requests. Unfortunately … Read more
Is it possible to make WordPress as a RESTful app?
Get full page HTML for a non-public WordPress page
I figured out the answer myself and I’ll post it here in case anyone else has this problem. Basically in WP 3.9.1, wp_insert_post() checks the current logged in user for account capabilities (at least this is what I assume). Since I was connecting over cURL, there is no logged in user so the capability checks … Read more