Skip to content

Commit b6f89c4

Browse files
committed
Add missing method (merge conflict)
1 parent e7d0bb4 commit b6f89c4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

classes/class-suggested-tasks.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,4 +517,14 @@ function ( $task ) use ( $args ) {
517517
*/
518518
return \apply_filters( 'progress_planner_suggested_tasks_in_rest_format', $tasks, $args );
519519
}
520+
521+
/**
522+
* Get the task ID from a slug.
523+
*
524+
* @param string $slug The slug.
525+
* @return string
526+
*/
527+
public function get_task_id_from_slug( $slug ) {
528+
return explode( '__trashed', $slug )[0];
529+
}
520530
}

0 commit comments

Comments
 (0)