post_save

Triggered upon saving post data to database.

Blog

Input (passed by reference)

$params array Post data array.
… your plugin code …

Output

Blog

Plugin code example

PHP

public function postSave($params)
{
    waLog::log(print_r($params, true), 'blog/myplugin/post-save.log');
}