Retrieve username and password from XMLRPC request
Retrieve username and password from XMLRPC request
Retrieve username and password from XMLRPC request
XMLRPC: How to retrieve possible custom fields for a new post?
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
use it like this: $post_id = (int) $remote_id;
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
Use the metaWeblog api instead: “metaWeblog.getRecentPosts”. This includes the permalink information. See here: http://mindsharestrategy.com/2010/wp-xmlrpc-metaweblog/
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.
turns out to be a libxml2 bug due to an old version on our server. Luckily a fix exits: the LibXML2-fix plugin.
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
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