Why is minimum_args protected?

You can totally swap out the class that runs the xmlrpc server. So create a subclass of wp_xmlrpc_server, use it for the xmlrpc server class, and use all the protected methods you like. Example (not tested, use with caution): <?php class WPSE69959_XMLRPC_Sever extends wp_xmlrpc_server { // override the constructor to add your own methods. public … Read more

Checking post format during xmlrpc_publish_post

This is because of a variable mismatch. Your function accepts $post_ID, but you don’t actually use it. You’re instead trying to reference a global $post object and doing your post format check with $post->ID. With the XML-RPC request, this won’t work. Rewrite your function to use get_post() to fetch a post object from the passed-in … Read more

XMLRPC filtering through htaccess not working

The directives in .htaccess (on your application server) would seem to be working as expected. Yet I keep getting requests on that file. Blocking the request in .htaccess doesn’t stop the request reaching your server (and being logged). As you can see from the log entry, it is being “blocked” and your server is responding … Read more

Posting via HTTP requests?

the XML-RPC protocol can do that for you, look up how to use it with curl: http://shoaibmir.wordpress.com/2009/03/10/using-curl-for-xmlrpc-calls/ and what the actual tags are: http://codex.wordpress.org/XML-RPC_Support

WordPress can’t find IXR_Client

You mean class-IRC.php or class-IXR.php? Just include the files before you call IXR_Client. I use such code to call IXR_CLIENT and it worked on my site: include_once( ABSPATH . WPINC . ‘/class-IXR.php’ ); include_once( ABSPATH . WPINC . ‘/class-wp-http-ixr-client.php’ ); $client = new WP_HTTP_IXR_CLIENT( ‘http://othersite.com/xmlrpc.php’ );

Working code example of PHP XML-RPC connex to site?

How complex do you want the example to be? This outputs “Hello”. $client = new WP_HTTP_IXR_Client(‘http://example.com/xmlrpc.php’); $client->query(‘demo.sayHello’); echo $client->getResponse(); This outputs “9”. $client = new WP_HTTP_IXR_Client(‘http://example.com/xmlrpc.php’); $client->query(‘demo.addTwoNumbers’, 4, 5); echo $client->getResponse(); This gets the WordPress version: $client = new WP_HTTP_IXR_Client(‘http://example.com/xmlrpc.php’); $client->query(‘wp.getOptions’, 0, ‘username’, ‘password’, ‘software_version’); $response = $client->getResponse(); echo $response[‘software_version’][‘value’]; Source: Me, 4 years ago: … Read more

Help Me Choose RSS or XML-RPC

It really depends on where you want your focus to be. Here’s a case for and against each: XML-RPC It sounds like your standard process is: Log in to main site Write post in X category Publish post Post is copied to the child site specific to X category In this setup, XML-RPC makes the … Read more