Filter: sensei_user_courses_query

apply_filters( 'sensei_user_courses_query', $query, $user_id, $status, $base_query_args ) → {WP_Query}

Filters the query which fetches the user courses.

Parameters:
Name Type Description
$query null
$user_id int

The user id.

$status string

Status of query to run.

$base_query_args array

Base query args.

Since:
  • 3.13.3
Source:
Returns:

The query.

Type
WP_Query