requests_delete

Triggered after requests deletion.

Helpdesk

Input (passed by reference)

$request_ids array IDs of deleted requests.
… your plugin code …

Output

Helpdesk

Plugin code example

PHP

public function requestsDelete($request_ids)
{
    waLog::log(
        sprintf(
            _wp(
                'Request %s has been deleted.',
                'Requests %s have been deleted.',
                count($request_ids),
                false
            ),
            implode(', ', array_map(function($request_id) {
                return '#' . $request_id;
            }, $request_ids))
        ),
        'myplugin.log'
    );
}