post_publish

Triggered on post publishing.

Blog

Input (passed by reference)

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

Output

Blog

Plugin code example

PHP

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