Enabling XML-RPC Accross 500 blogs

Short of logging into all the database servers remotely and updating the enable_xmlrpc option, you’re looking at a lot of work. But, I suspect you want XMLRPC to always be on. If that’s the case, create an mu-plugins folder in wp-content. Create a php file (enable-xmlrpc.php or whatever you like, it doesn’t matter), and drop … Read more

tag is ignored when using xml-rpc

When you add content to the post_content, WordPress wraps its own tags around everything and removes certain tags (such as script tags). Plugins, such as Visual composer let you add raw JS, ie. your script tags. However, if you don’t want to use a plugin, you can add it directly into your page.php or footer.php … Read more

metaWeblog.getRecentPosts is returning nothing in my iphone app

The XML-RPC has a filter, where you can add your custom methods: function wpse60127_xmlrpc_methods( $methods ) { $methods[‘newWPSE60127Method’] = ‘wpse60127_new_method’; return $methods; } add_filter( ‘xmlrpc_methods’, ‘wpse60127_xmlrpc_methods’ ); Simply add your own methods there (core methods/functions) are also allowed.

Create a “feed” from one WordPress site to another?

You can also parse the feed with core functions and insert new post in the other install. You can write or buy a plugin for doing this. The important functions for this scenario is ‘fetch_feed’ and ‘wp_insert_post’. It is also useful, if you change the default cache, if you have often new posts, more as … Read more

Clean/filter HTML inserted to post content by XML RPC

From the save_post Codex page: save_post is an action triggered whenever a post or page is created or updated, which could be from an import, post/page edit form, xmlrpc, or post by email. So, if you hook into save_post you can run your filter before save: add_action( ‘save_post’, ‘wpse_75871_save_post’ ); function wpse_75871_save_post( $post_id ) { … Read more