Articles of remote

Posting via HTTP requests?

Is there any way to do autoblogging on WordPress? What I want to do is to submit a new blogging entry through a HTTP request rather than through the WordPress UI. I know that I can do it using email, but I don’t want to go through any mail server.

Set timeout on wp_remote_post()

I am trying to use wp_remote_post() like this: wp_remote_post( $url, array( ‘blocking’ => false, ‘timeout’ => 0.1 ) ); The problem is that it seems to always force the timeout to 1s. I don’t even want to wait for 1s, I just want the remote post to start and immediately go back to my the […]

wp_remote_post with ssl:// protocol

$response = wp_remote_post( ‘ssl://’, array( ‘method’ => ‘POST’, ‘body’ => $string, // variable is set ‘timeout’ => apply_filters( ‘http_request_timeout’, 15), ‘sslverify’ => true )); error_log(print_r($response, TRUE)); if ( is_wp_error($response) ) { return FALSE; } $result = wp_remote_retrieve_body($response); The result is an error: [30-Aug-2011 21:53:53] WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( […]

Is there a way to know if a post has been published through XML-RPC?

It’s all in the title, I’m looking for a way to know if a given post was published through XML-RPC, versus published by hand in the WP admin. Pseudo code : if( !wpse_from_xmlrpc( $post -> ID ) { // Doesn’t come from XMLRPC } else { // Comes from XMLRPC }

How to define a remote uploads directory?

Using the constant overrides in wp-config I’m able to define a remote FTP server that plugins will be added to when installed using the WP interface. define(‘FS_METHOD’, ‘ftpext’); define(‘FTP_BASE’, ‘/’); define(‘FTP_CONTENT_DIR’, ‘/public_html/’); define(‘FTP_PLUGIN_DIR’, ‘/public_html/’); define(‘FTP_USER’, ‘username’); define(‘FTP_PASS’, ‘password’); define(‘FTP_HOST’, ‘’); What’s weird to me is that there isn’t a constant setup for themes or uploads. […]

How to upload images from my directory into my wordpress?

I’m doing a paste the link onto input and then uses PHP(imagecrop) to crop and store the image onto server directory. $imagesrc = $_GET[‘img’]; $img = file_get_contents($imagesrc); $im = imagecreatefromstring($img); $width = imagesx($im); $height = imagesy($im); $newwidth = ‘400’; $newheight = ‘800’; $thumb = imagecreatetruecolor($newwidth, $newheight); imagecopyresized($thumb, $im, 0, 0, 0, 0, $newwidth, $newheight, $width, […]

WordPress plugin to publish to multiple remote WordPress blogs

I have a WordPress (.org) blog (let’s call it blog1) that is used by many authors, who may create, edit and publish posts (on blog1). Each author has her/his own WordPress blogs, hosted elsewhere. The authors would like to be able to publish their posts from blog1 to their remote blogs. Is there any plugin […]