post_delete

Triggered upon deletion of one or several posts.

Blog

Input (passed by reference)

$params array Array of IDs of deleted posts.
… your plugin code …

Output

Blog

Plugin code example

PHP

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