What is the correct method for updating post content from a plugin?

This type of thing is most easily done from the TinyMCE editor through a plugin. Details of creating one using WordPress filters can be found here: http://codex.wordpress.org/TinyMCE_Custom_Buttons function myplugin_addbuttons() { // Don’t bother doing this stuff if the current user lacks permissions if ( ! current_user_can(‘edit_posts’) && ! current_user_can(‘edit_pages’) ) return; // Add only in … Read more

How can I default a new post to being saved?

This should work. It’s the way press-this gets the post id when you click the bookbarklet. add_action( ‘load-post-new.php’, ‘prefix_save_it’ ); function prefix_save_it() { // define some basic variables $quick = array(); $quick[‘post_status’] = ‘draft’; // set as draft first $quick[‘post_category’] = isset($_POST[‘post_category’]) ? $_POST[‘post_category’] : null; $quick[‘tax_input’] = isset($_POST[‘tax_input’]) ? $_POST[‘tax_input’] : null; $quick[‘post_title’] = … Read more