post_presave
Triggered immediately before saving a post to database.
Blog
Input (passed by reference)
$params array Post data array.
… your plugin code …
Output
$return['Error']
Error message displayed in backend on saving a post if a plugin returns an error before the attempt to save the post to database.
Blog
Plugin code example
PHP
public function postSave($params) { waLog::log(print_r($params, true), 'blog/myplugin/post-presave.log'); }