project_delete

Triggered upon the project deletion in the app settings.

Teamwork

Input (passed by reference)

$params['ids'] array<int> Array containing the ID of the project being deleted.
… your plugin code …

Output

Teamwork

Plugin code example

PHP

public function projectDelete(&$params)
{
    waLog::log(
        sprintf_wp('Project #%d has been deleted.', reset($params['ids'])),
        sprintf('tasks/plugins/%s/project_delete.log', $this->id)
    );
}