Filter: sensei_home_tasks

apply_filters( 'sensei_home_tasks', $tasks ) → {array}

Filters the list of tasks that will be later displayed in the Sensei Home header.

Parameters:
Name Type Description
$tasks Array.<array>

A dictionary of tasks indexed by task ID.

Properties:
Name Type Description
`$tasks[]['id']` string

The task ID. Must be unique.

`$tasks[]['title']` string

The task title.

`$tasks[]['priority']` int

Number used in frontend to sort tasks in ascending order.

`$tasks[]['url']` string

Optional. Destination URL for users when clicking on the task.

`$tasks[]['image']` string

Optional. Source url or path for the featured image when this task is the first pending one.

`$tasks[]['done']` bool

Whether the task is considered done or not.

`$tasks[]['disabled']` bool

Whether the task is considered disabled or not.

`$tasks[]['info']` bool

A text to describe something about the task in an info icon.

Since:
  • 4.8.0
Source:
Returns:

Filtered tasks.

Type
array