Skip to content
custom-logo
  • Home
  • Download Free
  • Get Pro
  • Home
  • Download Free
  • Get Pro

Getting Started

  • Introduction
  • Installation
  • Dashboard

Tasks

  • Overview
  • Copying a Task
  • Creating a Task
  • Editing a Task
  • Deleting a Task
  • Converting a Task to a Project
  • Subtasks
  • Exporting & Importing Tasks
  • Filtering Tasks
  • Printing a Task

Projects

  • Overview
  • Editing a Project
  • Deleting a Project
  • Copying a Project
  • Project Discussions
  • Exporting & Importing Projects
  • Adding Projects to the Dashboard
  • Project Status

Categories

  • Overview
  • Overview
  • Creating Categories
  • Editing Categories
  • Deleting Categories
  • Assigning Categories to Projects

Teams & Users

  • Permissions & Roles
  • Teams & Members
  • Setting Up Users
  • Creating Users

Files

  • File Manager

Calendar

  • Overview

Reporting & Statistics

  • Activity
  • Reporting

Frontend Project Manager

  • Overview

Custom Fields

  • Overview
  • Adding Custom Fields to Tasks
  • Creating Custom Fields
  • Deleting Custom Fields

Shortcodes

  • Projects
  • Shortcodes
  • Activity
  • Files
  • Calendar
  • Tasks

Integrations

  • Asana Integration

Developer

  • Action Hooks
  • REST API

Task Templates

  • Overview

Usability

  • Shortcuts

Mobile App

  • Overview

Troubleshooting

  • Debugging and Troubleshooting Errors
  • Home
  • /
  • Docs
  • /
  • Developer
  • /
  • Action Hooks

Action Hooks

Table of Contents
  • New project
  • Project Deleted
  • Project Completed
  • Project Assigned
  • Project Status Changed
  • Project Copied
  • New Task Created
  • Task Updated
  • Task Deleted
  • Task Completed
  • Task Status Changed

Zephyr Project Manager allows you to hook into the following actions documented below:

New project #

Action: zpm_new_project

Fires when a new project is created

Usage:

add_action('zpm_new_project', 'zpm_new_project_callback');

function zpm_new_project_callback ($project) {
	// $project: The project object containing the details. You can get the name id, name, description and more with $project->id, $project->name, $project->description etc.
}

Project Deleted #

Action: zpm_project_deleted

Fires when a project is deleted

Usage:

add_action('zpm_project_deleted', 'zpm_project_deleted_callback');

function zpm_project_deleted_callback ($project) {
	// $project: The project object containing the details. You can get the name id, name, description and more with $project->id, $project->name, $project->description etc.
}

Project Completed #

Action: zpm_project_completed

Fires when all the tasks within a project are completed, making the project complete

Usage:

add_action('zpm_project_completed', 'zpm_project_completed_callback');

function zpm_project_completed_callback ($project) {
	// $project: The project object containing the details. You can get the name id, name, description and more with $project->id, $project->name, $project->description etc.
}

Project Assigned #

Action: zpm_project_assigned

Fires when a project is assigned to someone

Usage:

add_action('zpm_project_assigned', 'zpm_project_assigned_callback');

function zpm_project_assigned_callback ($project, $assignees) {
	// $project: The project object containing the details. You can get the name id, name, description and more with $project->id, $project->name, $project->description etc.// $assignees: An associative array of all assigned users.
}

Project Status Changed #

Action: zpm_project_status_changed

Fires when a projects status changes

Usage:

add_action('zpm_project_status_changed', 'zpm_project_status_changed_callback');

function zpm_project_status_changed_callback ($data) {
	// $data: An array containing the project 'id', 'status' and 'color' of the new status
}

Project Copied #

Action: zpm_copy_project

Fires when a project is copied

Usage:

add_action('zpm_copy_project', 'zpm_copy_project_callback');

function zpm_copy_project_callback ($projectID, $prevID) {
	// $projectID: ID of the new copy project// $prevID: ID of the project that is being copied
}

New Task Created #

Action: zpm_new_task

Fires when a new task is created

Usage:

add_action('zpm_new_task', 'zpm_new_task_callback');

function zpm_new_task_callback ($task) {
	// $task: An object containing the new task data, such as the 'name', 'id' and 'description'
}

Task Updated #

Action: zpm_task_updated

Fires when a task is updated or edited

Usage:

add_action('zpm_task_updated', 'zpm_task_updated_callback');

function zpm_task_updated_callback ($task) {
	// $task: An object containing the new task data, such as the 'name', 'id' and 'description'
}

Task Deleted #

Action: zpm_task_deleted

Fires when a task is deleted

Usage:

add_action('zpm_task_deleted', 'zpm_task_deleted_callback');

function zpm_task_deleted_callback ($taskID) {
	// $taskID: ID of the deleted task
}

Task Completed #

Action: zpm_task_completed

Fires when a task is completed

Usage:

add_action('zpm_task_completed', 'zpm_task_completed_callback');

function zpm_task_completed_callback ($task) {
	// $task: An object containing the new task data, such as the 'name', 'id' and 'description'
}

Task Status Changed #

Action: zpm_task_status_changed

Fires when a tasks status is changed

Usage:

add_action('zpm_task_status_changed', 'zpm_task_status_changed_callback');

function zpm_task_status_changed_callback ($taskID, $status) {
	// $taskID: ID of the deleted task// $status: The new status
}
Was this helpful?
REST API
Table of Contents
  • New project
  • Project Deleted
  • Project Completed
  • Project Assigned
  • Project Status Changed
  • Project Copied
  • New Task Created
  • Task Updated
  • Task Deleted
  • Task Completed
  • Task Status Changed