Skip to content

Commit

Permalink
2024 Theme: Remove course average days for completion from sidebar
Browse files Browse the repository at this point in the history
Closes #2695
  • Loading branch information
adamwoodnz committed Jul 22, 2024
1 parent 1740ab5 commit b31ae33
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ function render( $attributes, $content, $block ) {
// Get the average grade across all learners.
$average_grade = round( $course_service->get_courses_average_grade( array( $course_id ) ), 0 );

// Get the average number of days it takes to complete a course.
$average_days = $course_service->get_average_days_to_completion( array( $course_id ) );

// Get the last updated time.
$last_updated = get_last_updated_time( $course_id );

Expand All @@ -81,11 +78,6 @@ function render( $attributes, $content, $block ) {
'value' => $average_grade . '%',
'key' => 'average-grade',
),
array(
'label' => __( 'Average days to completion', 'wporg-learn' ),
'value' => $average_days,
'key' => 'average-days',
),
array(
'label' => __( 'Last updated', 'wporg-learn' ),
'value' => $last_updated,
Expand Down

0 comments on commit b31ae33

Please sign in to comment.