Skip to content

Commit

Permalink
2024 Theme: Remove usage of deprecated SenseiUtils::user_started_course
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jun 4, 2024
1 parent cb5b20b commit 2df0d6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function render( $attributes, $content, $block ) {

if ( $is_completed ) {
$content = __( 'Completed', 'wporg-learn' );
} elseif ( Sensei_Utils::user_started_course( $course_id, $user_id ) ) {
} elseif ( Sensei_Utils::has_started_course( $course_id, $user_id ) ) {
$content = __( 'In progress', 'wporg-learn' );
} else {
return '';
Expand Down

0 comments on commit 2df0d6f

Please sign in to comment.