| @@ -620,20 +620,5 @@ | ||
| 620 | 620 | } |
| 621 | 621 | |
| 622 | 622 | return $history; |
| 623 | 623 | } |
| 624 | - public function get_status_label( $status = '' ) { | |
| 625 | - $statuses = array( | |
| 626 | - 'started' => __( 'In Progress', 'learnpress' ), | |
| 627 | - 'in-progress' => __( 'In Progress', 'learnpress' ), | |
| 628 | - 'completed' => __( 'Completed', 'learnpress' ), | |
| 629 | - 'passed' => __( 'Passed', 'learnpress' ), | |
| 630 | - 'failed' => __( 'Failed', 'learnpress' ), | |
| 631 | - ); | |
| 632 | - | |
| 633 | - if ( ! $status ) { | |
| 634 | - $status = $this->get_status(); | |
| 635 | - } | |
| 636 | - | |
| 637 | - return ! empty( $statuses[ $status ] ) ? $statuses[ $status ] : __( 'Not Started', 'learnpress' ); | |
| 638 | - } | |
| 639 | 624 | } |