post_prepublish

Triggered immediately before publishing a post.

Blog

Input (passed by reference)

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

Output

$return['Error']
Blog

Plugin code example

PHP

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