I'm writing a function that runs when a post is saved in the Edit Post panel, hooked onto the save_post action hook.
I'm having problems preventing the function running also when the Preview button is pressed. Can anyone tell me how to stop this happening? It doesn't need to run at this point (when it does, it breaks my plugin), as long as it does run when the update/publish button is pressed.
Cheers,
a|x