---
id: gk-foundation-scheduler-task-.this-name.-callback
title: "Filter - gk/foundation/scheduler/task/ . $this->name . /callback"
sidebar_label: "gk/foundation/scheduler/task/ . $this->name . /callback"
tags:
  - "1.12.0"
---

# Filter: gk/foundation/scheduler/task/ . $this->name . /callback

Filters the task callback.

The filtered value must be callable (function, closure, or class method). Invalid values are silently ignored and the original callback is used.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $callback | `callable` | The task callback. |
| $instance | `\Task` | The task object. |

### Since

- 1.12.0

### Source

Defined in `Scheduler/Models/Task.php` at line 166

