Publishing Remotely To WordPress?

Built in to the current version of WordPress there is “Remote Publishing” settings for Atom or XML-RPC, but that is geared towards programs that help you blog outside of your WordPress control panel. You can configure it in the Settings > Writing area of your site’s WordPress dashboard. If you want to publish the content … Read more

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

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 ); } function wpse_from_xmlrpc( $post_id ){ $xmlrpc = get_post_meta( $post_id, ‘send-by-xmlrpc’, true ); if( $xmlrpc … Read more

Remote plugin activation hook

Use activate_plugin() instead: activate_plugin( $plugin, $redirect=””, $network_wide = false, $silent = false ) You need just the first parameter, the same value as in the option. This function will call the necessary actions: if ( ! $silent ) { do_action( ‘activate_plugin’, $plugin, $network_wide ); do_action( ‘activate_’ . $plugin, $network_wide ); } Note: depending on where … Read more