Skip to content

Commit

Permalink
Impove the filter_learners_query method comment
Browse files Browse the repository at this point in the history
  • Loading branch information
m1r0 committed Dec 13, 2023
1 parent 19d3b78 commit c9f1018
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/class-sensei-teacher.php
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,10 @@ public function filter_queries( $query ) {
}

/**
* Filter the learners query to show
* only users that belong to the current logged teacher.
* Filter the learners query to only show learners associated to the current teacher.
*
* To determine if a learner is associated to a teacher, we check if the learner has
* progress for a course that belongs to the teacher.
*
* @since $$next-version$$
*
Expand Down

0 comments on commit c9f1018

Please sign in to comment.