Putting aside the off-topic discussion regarding the value of Autosave and Revision features in WordPress, and continuing on with the author’s original question – that is how to disable these features?
I had great success with the WordPress Post Control Plugin, and would recommend it as a preferred method of disabled these features, rather than modifying any of the WP code directly.
bounce. anyone know how to do this?
I’m experiencing the exact same problem.
When running:
add_action('save_post', 'function_name');
Which in turns calls this function:
function function_name($post_id)
{
//perform some action
}
The function should be parsed the correct $post_id variable. This only works for the initial save, upon subsequent edits WP passes a different post_id to the post that is being edited.
If anyone can shed some light on this situation, it would be very much appreciated.