Skip to content

Commit 48117cd

Browse files
committed
Make task list filterable, add custom action for task table headers
1 parent c12e3fa commit 48117cd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

classes/tasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function sanitize_task( $task ) {
9191
false
9292
);
9393

94-
return $task;
94+
return apply_filters( 'wpcable_sanitize_task',$task );
9595
}
9696

9797
/**

functions/admin-tasks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class="list-title"
239239
<th class="col-value"><?php esc_html_e( 'Value', 'wpcable' ); ?></th>
240240
<th class="col-title"><?php esc_html_e( 'Title', 'wpcable' ); ?></th>
241241
<th class="col-notes"><?php esc_html_e( 'Notes', 'wpcable' ); ?></th>
242+
<?php do_action('wpcable_task_table_header'); ?>
242243
</tr>
243244
</thead>
244245
<tbody class="task-list"></tbody>

0 commit comments

Comments
 (0)