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