Skip to content

Commit

Permalink
mark tasks as completed
Browse files Browse the repository at this point in the history
  • Loading branch information
ilicfilip committed Dec 10, 2024
1 parent a06c38c commit 6c56a6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/widgets/class-suggested-tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public function enqueue_scripts() {
$task_details['action'] = 'celebrate';
$tasks['details'][] = $task_details;
}

// Mark the pending celebration tasks as completed.
\progress_planner()->get_suggested_tasks()->transition_task_status( $task_id, 'pending_celebration', 'completed' );
}

// Localize the script.
Expand Down

0 comments on commit 6c56a6e

Please sign in to comment.