Tag Info

New answers tagged


You could use a custom field for a post which is saved via XMLRPC by using the action hook xmlrpc_publish_post. wpse_from_xmlrpc() could than check this custom field. <?php add_action( 'xmlrpc_publish_post', 'add_xmlrpc_postmeta' ); function add_xmlrpc_postmeta( $post_id ){ update_post_meta( $post_id, 'send-by-xmlrpc', 1 ); } ...


These options are not among the default writable $blog_options. Here's one (untested) idea using the xmlrpc_blog_options filter to make the show_on_front option writeable: /** * Add 'show_on_front' to the list of XML-RPC writeable options. */ add_filter( 'xmlrpc_blog_options', function( $blog_options ) { if( is_array( $blog_options ) ) { ...

Top 50 recent answers are included