Action: sensei_before_learners_enrolled_courses_query

do_action( 'sensei_before_learners_enrolled_courses_query', $user_id )

Fire before we query a user's enrolled courses. This needs to be called before building the query arguments, because active courses might be incomplete if we haven't verified a user's enrolment is up-to-date.

Parameters:
Name Type Description
$user_id int

User ID.

Since:
  • 3.0.0
Source: