-
Notifications
You must be signed in to change notification settings - Fork 199
/
includes_class-sensei-learner.php.html
871 lines (741 loc) · 75.1 KB
/
includes_class-sensei-learner.php.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Source: includes/class-sensei-learner.php - Sensei LMS Hook Docs</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono|IBM+Plex+Sans:300,400|Playfair+Display:900&display=swap" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="styles.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: includes/class-sensei-learner.php</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code><?php
/**
* File containing the class Sensei_Learner.
*
* @package sensei
*/
/**
* Responsible for all student specific functionality and helper functions
*
* @package Users
* @author Automattic
*
* @since 1.9.0
*/
class Sensei_Learner {
const LEARNER_TERM_PREFIX = 'user-';
/**
* Instance of singleton.
*
* @since 3.0.0
*
* @var self
*/
private static $instance;
/**
* Cache of the learner terms.
*
* @var WP_Term[]
*/
private static $learner_terms = [];
/**
* Fetches an instance of the class.
*
* @since 3.0.0
*
* @return self
*/
public static function instance() {
if ( ! self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Sensei_Course_Enrolment_Manager constructor. Private so it can only be initialized internally.
*/
private function __construct() {}
/**
* Sets the actions.
*
* @since 3.0.0
*/
public function init() {
add_filter( 'rest_course_query', array( $this, 'filter_rest_course_query' ), 10, 2 );
add_action( 'wp_ajax_get_course_list', array( $this, 'get_course_list' ) );
// Delete user activity and enrolment terms when user is deleted.
add_action( 'deleted_user', array( $this, 'delete_all_user_activity' ) );
// Try to remove duplicate progress comments to mitigate duplicate enrollment issue.
add_action( 'sensei_log_activity_after', [ $this, 'remove_duplicate_progress' ] );
// Add custom columns.
add_filter( 'manage_course_posts_columns', array( $this, 'add_course_column_heading' ), 10 );
add_action( 'manage_course_posts_custom_column', array( $this, 'add_course_column_data' ), 10, 2 );
}
/**
* Add columns to courses list table.
*
* @since 4.0.0
*
* @param array $columns Course columns.
* @return array
*/
public function add_course_column_heading( $columns ) {
$columns['students'] = _x( 'Students', 'column name', 'sensei-lms' );
return $columns;
}
/**
* Output the content of the course columns.
*
* @since 4.0.0
* @access private
*
* @param string $column Current column name.
* @param int $course_id The course ID.
*/
public function add_course_column_data( $column, $course_id ) {
if ( 'students' === $column ) {
$this->output_students_column( $course_id );
}
}
/**
* Output the students' column HTML.
*
* @since 4.0.0
* @access private
*
* @param int $course_id The course ID.
* @return void
*/
private function output_students_column( int $course_id ) {
$students_count = Sensei_Utils::sensei_check_for_activity(
[
'post_id' => $course_id,
'type' => 'sensei_course_status',
'status' => 'any',
]
);
echo esc_html(
sprintf(
// translators: Placeholder is the number of students enrolled in a course.
_n( '%d student', '%d students', $students_count, 'sensei-lms' ),
$students_count
)
);
$manage_url = add_query_arg(
[
'page' => 'sensei_learners',
'view' => 'learners',
'course_id' => $course_id,
],
admin_url( 'admin.php' )
);
$grade_url = add_query_arg(
[
'page' => 'sensei_grading',
'view' => 'all',
'course_id' => $course_id,
],
admin_url( 'admin.php' )
);
?>
<div class="sensei-wp-list-table-actions">
<p>
<a class="button-secondary" href="<?php echo esc_url( $manage_url ); ?>">
<?php esc_html_e( 'Manage', 'sensei-lms' ); ?>
</a>
</p>
<?php if ( $students_count ) : ?>
<p>
<a class="button-secondary" href="<?php echo esc_url( $grade_url ); ?>">
<?php esc_html_e( 'Grade', 'sensei-lms' ); ?>
</a>
</p>
<?php endif ?>
</div>
<?php
}
/**
* Delete all activity for specified user.
*
* @since 3.0.0
*
* @param integer $user_id User ID.
* @return boolean
*/
public function delete_all_user_activity( $user_id = 0 ) {
$dataset_changes = false;
if ( ! $user_id ) {
return $dataset_changes;
}
// Remove enrolment terms.
$learner_term = self::get_learner_term( $user_id );
wp_delete_term( $learner_term->term_id, Sensei_PostTypes::LEARNER_TAXONOMY_NAME );
$activities = Sensei_Utils::sensei_check_for_activity( array( 'user_id' => $user_id ), true );
if ( ! $activities ) {
return $dataset_changes;
}
// Need to always return an array, even with only 1 item.
if ( ! is_array( $activities ) ) {
$activities = array( $activities );
}
$post_ids = [];
foreach ( $activities as $activity ) {
if ( empty( $activity->comment_type ) ) {
continue;
}
if ( strpos( $activity->comment_type, 'sensei_' ) !== 0 ) {
continue;
}
$post_ids[] = $activity->comment_post_ID;
$dataset_changes = wp_delete_comment( intval( $activity->comment_ID ), true );
}
foreach ( array_unique( $post_ids ) as $post_id ) {
Sensei()->flush_comment_counts_cache( $post_id );
}
return $dataset_changes;
}
/**
* Filter the courses returned by the REST API to just ones that can be managed.
*
* @param array $args Array of arguments for WP_Query.
* @param WP_REST_Request $request The REST API request.
*
* @return array
*/
public function filter_rest_course_query( $args, $request ) {
$filter = $request->get_param( 'filter' );
if (
'teacher' === $filter
&& ! current_user_can( 'manage_sensei' )
&& current_user_can( 'manage_sensei_grades' )
) {
$args['context'] = 'teacher-filter';
$args['author'] = get_current_user_id();
}
return $args;
}
/**
* Remove duplicate progress comments to mitigate duplicate enrollment issue.
*
* Hooked into sensei_log_activity_after
*
* @since 3.7.0
* @access private
*
* @param array $args
*/
public function remove_duplicate_progress( $args ) {
if ( empty( $args['post_id'] ) || empty( $args['user_id'] ) || empty( $args['type'] ) ) {
return;
}
add_action(
'shutdown',
function() use ( $args ) {
global $wpdb;
// Get progress comments, but the first one, which match the context conditions (they should not exist).
// phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
$comment_ids = $wpdb->get_col(
$wpdb->prepare(
"SELECT comment_ID
FROM $wpdb->comments
WHERE comment_post_ID = %d
AND user_id = %d
AND comment_type = %s
ORDER BY comment_ID
LIMIT 1, 99",
$args['post_id'],
$args['user_id'],
$args['type']
),
0
);
if ( ! empty( $comment_ids ) ) {
$serialized_comment_ids = implode( ',', $comment_ids );
sensei_log_event(
'remove_duplicate_progress_comments',
[
'post_id' => $args['post_id'],
'user_id' => $args['user_id'],
'type' => $args['type'],
'comment_ids' => $serialized_comment_ids,
]
);
$format_comment_ids = implode( ', ', array_fill( 0, count( $comment_ids ), '%s' ) );
$sql = "DELETE FROM $wpdb->comments WHERE comment_ID IN ( $format_comment_ids )";
$wpdb->query( call_user_func_array( [ $wpdb, 'prepare' ], array_merge( [ $sql ], $comment_ids ) ) );
$sql = "DELETE FROM $wpdb->commentmeta WHERE comment_id IN ( $format_comment_ids )";
$wpdb->query( call_user_func_array( [ $wpdb, 'prepare' ], array_merge( [ $sql ], $comment_ids ) ) );
clean_comment_cache( $comment_ids );
}
// phpcs:enable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
}
);
}
/**
* Returns the count of courses enrolled for a user.
*
* @param int $user_id The User ID.
* @param array $base_query_args The base query arguments - default is empty.
*
* @return int Post count.
*/
public function get_enrolled_courses_count_query( $user_id, array $base_query_args = [] ): int {
$base_query_args = [
'posts_per_page' => -1,
'fields' => 'ids',
];
$this->before_enrolled_courses_query( $user_id );
$query_args = $this->get_enrolled_courses_query_args( $user_id, $base_query_args );
$posts = new WP_Query( $query_args );
if ( $posts->post_count > 0 ) {
return $posts->post_count;
}
return 0;
}
/**
* Query the courses a user is enrolled in.
*
* @param int $user_id User ID.
* @param array $base_query_args Base query arguments.
*
* @return WP_Query
*/
public function get_enrolled_courses_query( $user_id, $base_query_args = [] ) {
$this->before_enrolled_courses_query( $user_id );
$query_args = $this->get_enrolled_courses_query_args( $user_id, $base_query_args );
return new WP_Query( $query_args );
}
/**
* Query the courses a user is enrolled in and hasn't completed.
*
* @param int $user_id User ID.
* @param array $base_query_args Base query arguments.
*
* @return WP_Query
*/
public function get_enrolled_active_courses_query( $user_id, $base_query_args = [] ) {
return $this->get_enrolled_courses_query_by_progress_status( $user_id, $base_query_args, 'active' );
}
/**
* Query the courses a user is enrolled in and has completed.
*
* @param int $user_id User ID.
* @param array $base_query_args Base query arguments.
*
* @return WP_Query
*/
public function get_enrolled_completed_courses_query( $user_id, $base_query_args = [] ) {
return $this->get_enrolled_courses_query_by_progress_status( $user_id, $base_query_args, 'completed' );
}
/**
* Query the courses a user is enrolled in by progress status.
*
* @param int $user_id User ID.
* @param array $base_query_args Base query arguments.
* @param string $type Type of query to run (`active` or `completed`).
*
* @return WP_Query
*/
private function get_enrolled_courses_query_by_progress_status( $user_id, $base_query_args, $type ) {
$this->before_enrolled_courses_query( $user_id );
$query_args = $this->get_enrolled_courses_query_args( $user_id, $base_query_args );
if ( 'active' === $type ) {
$course_ids = $this->get_course_ids_by_progress_status( $user_id, 'in-progress' );
} else {
$course_ids = $this->get_course_ids_by_progress_status( $user_id, 'complete' );
}
if ( ! empty( $query_args['post__in'] ) ) {
$existing_post_ids = (array) $query_args['post__in'];
$existing_post_ids = array_map( 'intval', $existing_post_ids );
$course_ids = array_intersect( $course_ids, $existing_post_ids );
}
if ( empty( $course_ids ) ) {
$course_ids = [ -1 ];
}
$query_args['post__in'] = $course_ids;
return new WP_Query( $query_args );
}
/**
* Get the arguments to pass to WP_Query to fetch a learner's enrolled courses.
*
* @param int $user_id User ID.
* @param array $base_query_args Base query arguments.
*
* @return array
*/
public function get_enrolled_courses_query_args( $user_id, $base_query_args = [] ) {
$order = 'DESC';
$orderby = 'date';
$has_set_course_order = '' !== get_option( 'sensei_course_order', '' );
// If a fixed course order has been set, trust menu_order.
if ( $has_set_course_order ) {
$order = 'ASC';
$orderby = 'menu_order';
}
$default_args = [
'post_status' => 'publish',
'order' => $order,
'orderby' => $orderby,
'tax_query' => [], // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query -- Just empty to set array.
'lazy_load_term_meta' => false,
'cache_results' => false,
];
$query_args = array_merge( $default_args, $base_query_args );
$learner_term = self::get_learner_term( $user_id );
/**
* Filters the term ID used in the query to fetch a learner's enrolled courses.
*
* @hook sensei_learner_get_enrolled_courses_query_args_term_id
*
* @since 4.23.1
*
* @param {int} $term_id The term ID.
* @return {int} The term ID.
*/
$term_id = apply_filters( 'sensei_learner_get_enrolled_courses_query_args_term_id', $learner_term->term_id );
$query_args['post_type'] = 'course';
$query_args['tax_query'][] = [
'taxonomy' => Sensei_PostTypes::LEARNER_TAXONOMY_NAME,
'terms' => $term_id,
'include_children' => false,
];
/**
* Filters the arguments of the query which fetches a learner's enrolled courses.
*
* @since 3.3.0
*
* @hook sensei_learner_enrolled_courses_args
*
* @param {array} $query_args The query args.
* @param {int} $user_id The user id.
* @return {array} Query arguments.
*/
return apply_filters( 'sensei_learner_enrolled_courses_args', $query_args, $user_id );
}
/**
* Notify that a user's enrolled courses are about to be queried.
*
* @param int $user_id The user id.
*/
private function before_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.
*
* @since 3.0.0
*
* @hook sensei_before_learners_enrolled_courses_query
*
* @param {int} $user_id User ID.
*/
do_action( 'sensei_before_learners_enrolled_courses_query', $user_id );
}
/**
* Get the course IDs by progress status.
*
* @param int $user_id User ID.
* @param string $status Course progress status. Either `completed` or `in-progress`.
*
* @return int[]
*/
private function get_course_ids_by_progress_status( $user_id, $status ) {
$course_ids = array();
$course_statuses = Sensei_Utils::sensei_check_for_activity(
[
'user_id' => $user_id,
'type' => 'sensei_course_status',
'status' => $status,
],
true
);
// Check for activity returns single if only one. We always want an array.
if ( ! is_array( $course_statuses ) ) {
$course_statuses = [ $course_statuses ];
}
foreach ( $course_statuses as $status ) {
$course_ids[] = intval( $status->comment_post_ID );
}
/**
* Filters the course IDs when getting them for a user by progress status.
*
* @hook sensei_learner_get_course_ids_by_progress_status_course_ids
*
* @param {int[]} $course_ids Course IDs.
* @param {int} $user_id User ID.
* @param {string} $status Progress status.
* @return {int[]} Course IDs.
*/
$course_ids = apply_filters( 'sensei_learner_get_course_ids_by_progress_status_course_ids', $course_ids, $user_id, $status );
return $course_ids;
}
/**
* Get the learner term for the user.
*
* @param int $user_id User ID.
* @return WP_Term
* @throws Exception When learner term could not be created.
*/
public static function get_learner_term( $user_id ) {
$user_term_slug = self::get_learner_term_slug( $user_id );
if ( ! isset( self::$learner_terms[ $user_id ] ) ) {
self::$learner_terms[ $user_id ] = get_term_by( 'slug', $user_term_slug, Sensei_PostTypes::LEARNER_TAXONOMY_NAME );
if ( empty( self::$learner_terms[ $user_id ] ) ) {
$term = wp_insert_term( $user_term_slug, Sensei_PostTypes::LEARNER_TAXONOMY_NAME );
if ( is_array( $term ) && ! empty( $term['term_id'] ) ) {
self::$learner_terms[ $user_id ] = get_term( $term['term_id'] );
}
}
if ( empty( self::$learner_terms[ $user_id ] ) || self::$learner_terms[ $user_id ] instanceof WP_Error ) {
unset( self::$learner_terms[ $user_id ] );
throw new Exception( esc_html__( 'Student term could not be created for user.', 'sensei-lms' ) );
}
}
return self::$learner_terms[ $user_id ];
}
/**
* Get the learner user ID from a term slug.
*
* @param string $term_name Term slug to parse the user ID from.
* @return int
*/
public static function get_learner_id( $term_name ) {
// Cut off the `user-` prefix.
return intval( substr( $term_name, strlen( self::LEARNER_TERM_PREFIX ) ) );
}
/**
* Gets the user term slug.
*
* @param int $user_id User ID.
* @return string
*/
public static function get_learner_term_slug( $user_id ) {
return self::LEARNER_TERM_PREFIX . $user_id;
}
/**
* Get the students full name
*
* This function replaces Sensei_Learner_Managment->get_learner_full_name
*
* @since 1.9.0
*
* @param int $user_id User ID.
*
* @return string
*/
public static function get_full_name( $user_id ) {
$full_name = '';
if ( empty( $user_id ) || ! ( 0 < intval( $user_id ) )
|| ! ( get_userdata( $user_id ) ) ) {
return '';
}
// Get the user details.
$user = get_user_by( 'id', $user_id );
if ( ! empty( $user->first_name ) && ! empty( $user->last_name ) ) {
$full_name = trim( $user->first_name ) . ' ' . trim( $user->last_name );
} else {
$full_name = $user->display_name;
}
/**
* Filter the user full name from the get_learner_full_name function.
*
* @since 1.8.0
*
* @hook sensei_learner_full_name
*
* @param {string} $full_name The full name of the user.
* @param {int}] $user_id The user ID.
* @return {string} The full name of the user.
*/
return apply_filters( 'sensei_learner_full_name', $full_name, $user_id );
}
/**
* Get all active learner ids for a course.
*
* @param int $course_id Course ID.
*
* @deprecated 3.0.0
*
* @return array
*/
public static function get_all_active_learner_ids_for_course( $course_id ) {
_deprecated_function( __METHOD__, '3.0.0' );
$post_id = absint( $course_id );
if ( ! $post_id ) {
return array();
}
$activity_args = array(
'post_id' => $post_id,
'type' => 'sensei_course_status',
'status' => 'any',
);
$learners = Sensei_Utils::sensei_check_for_activity( $activity_args, true );
if ( ! is_array( $learners ) ) {
$learners = array( $learners );
}
$learner_ids = wp_list_pluck( $learners, 'user_id' );
return $learner_ids;
}
/**
* Get all users.
*
* @param array $args Arguments.
*
* @deprecated 3.0.0
*
* @return mixed | int
*/
public static function get_all( $args ) {
_deprecated_function( __METHOD__, '3.0.0' );
$post_id = 0;
$activity = '';
if ( isset( $args['lesson_id'] ) ) {
$post_id = intval( $args['lesson_id'] );
$activity = 'sensei_lesson_status';
} elseif ( isset( $args['course_id'] ) ) {
$post_id = intval( $args['course_id'] );
$activity = 'sensei_course_status';
}
if ( ! $post_id || ! $activity ) {
return array();
}
$activity_args = array(
'post_id' => $post_id,
'type' => $activity,
'status' => 'any',
'number' => $args['per_page'],
'offset' => $args['offset'],
'orderby' => $args['orderby'],
'order' => $args['order'],
);
// Searching users on statuses requires sub-selecting the statuses by user_ids.
if ( $args['search'] ) {
$user_args = array(
'search' => '*' . $args['search'] . '*',
'fields' => 'ID',
);
/**
* Filter the user arguments used to search for learners.
*
* @hook sensei_learners_search_users
*
* @param {array} $user_args The user arguments.
* @return {array} The filtered user arguments.
*/
$user_args = apply_filters( 'sensei_learners_search_users', $user_args );
if ( ! empty( $user_args ) ) {
$learners_search = new WP_User_Query( $user_args );
$activity_args['user_id'] = $learners_search->get_results();
}
}
/**
* Filter the arguments used to search for learners activity.
*
* @hook sensei_learners_filter_users
*
* @param {array} $activity_args The activity arguments.
* @return {array} The filtered activity arguments.
*/
$activity_args = apply_filters( 'sensei_learners_filter_users', $activity_args );
// WP_Comment_Query doesn't support SQL_CALC_FOUND_ROWS, so instead do this twice.
$total_learners = Sensei_Utils::sensei_check_for_activity(
array_merge(
$activity_args,
array(
'count' => true,
'offset' => 0,
'number' => 0,
)
)
);
// Ensure we change our range to fit (in case a search threw off the pagination) - Should this be added to all views?
if ( $total_learners < $activity_args['offset'] ) {
$new_paged = floor( $total_learners / $activity_args['number'] );
$activity_args['offset'] = $new_paged * $activity_args['number'];
}
$learners = Sensei_Utils::sensei_check_for_activity( $activity_args, true );
// Need to always return an array, even with only 1 item.
if ( ! is_array( $learners ) ) {
$learners = array( $learners );
}
return $learners;
}
/**
* Get learner from Query Var
*
* @param string $query_var The Query var.
* @return WP_User|false
*/
public static function find_by_query_var( $query_var ) {
if ( empty( $query_var ) ) {
return false;
}
if ( false !== filter_var( $query_var, FILTER_VALIDATE_INT ) ) {
return get_user_by( 'id', $query_var ); // Get requested learner object by id.
}
if ( false !== filter_var( $query_var, FILTER_VALIDATE_EMAIL ) ) {
return get_user_by( 'email', $query_var ); // Get requested learner object by email.
}
$by_slug = get_user_by( 'slug', $query_var );
if ( false !== $by_slug ) {
return $by_slug;
}
return get_user_by( 'login', $query_var );
}
/**
* Returns course list for AJAX "more" call on Students page.
*
* @return void
*/
public function get_course_list() {
if ( empty( $_POST['nonce'] ) ) {
wp_send_json_error( array( 'error' => esc_html__( 'Insufficient Permissions.', 'sensei-lms' ) ) );
}
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Don't modify the nonce.
if ( ! isset( $_POST['user_id'] ) || ! wp_verify_nonce( wp_unslash( $_POST['nonce'] ), 'get_course_list' ) ) {
wp_send_json_error( array( 'error' => esc_html__( 'Insufficient Permissions.', 'sensei-lms' ) ) );
}
$user_id = isset( $_POST['user_id'] ) ? sanitize_text_field( wp_unslash( $_POST['user_id'] ) ) : '';
$learner_manager = self::instance();
$controller = new Sensei_Learners_Admin_Bulk_Actions_Controller( new Sensei_Learner_Management( '' ), $learner_manager );
$base_query_args = [ 'posts_per_page' => -1 ];
$courses_query = $learner_manager->get_enrolled_courses_query( $user_id, $base_query_args );
// We only want to show courses after the third one in the UI.
$courses = array_slice( $courses_query->posts, 3 );
$html_items = [];
foreach ( $courses as $course ) {
$html_items[] = '<a href="' . esc_url( $controller->get_learner_management_course_url( $course->ID ) ) .
'" class="sensei-students__enrolled-course" data-course-id="' . intval( $course->ID ) . '">' .
esc_html( $course->post_title ) .
'</a>';
}
wp_send_json_success( $html_items );
exit();
}
}
</code></pre>
</article>
</section>
<footer>
<a href="https://senseilms.com/">SenseiLMS.com</a> •
<a href="https://github.com/automattic/sensei">Sensei LMS on GitHub</a>
</footer>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Actions</h3><ul><li><a href="analysis_after_container.html">analysis_after_container</a></li><li><a href="analysis_before_container.html">analysis_before_container</a></li><li><a href="analysis_wrapper_container.html">analysis_wrapper_container</a></li><li><a href="grading_after_container.html">grading_after_container</a></li><li><a href="grading_before_container.html">grading_before_container</a></li><li><a href="grading_wrapper_container.html">grading_wrapper_container</a></li><li><a href="learners_after_container.html">learners_after_container</a></li><li><a href="learners_before_container.html">learners_before_container</a></li><li><a href="learners_wrapper_container.html">learners_wrapper_container</a></li><li><a href="sensei_additional_scripts.html">sensei_additional_scripts</a></li><li><a href="sensei_additional_styles.html">sensei_additional_styles</a></li><li><a href="sensei_admin_enrol_user.html">sensei_admin_enrol_user</a></li><li><a href="sensei_after_active_user_courses.html">sensei_after_active_user_courses</a></li><li><a href="sensei_after_completed_user_courses.html">sensei_after_completed_user_courses</a></li><li><a href="sensei_after_email_content.html">sensei_after_email_content</a></li><li><a href="sensei_after_email_template.html">sensei_after_email_template</a></li><li><a href="sensei_after_learner_course_content.html">sensei_after_learner_course_content</a></li><li><a href="sensei_after_list_table.html">sensei_after_list_table</a></li><li><a href="sensei_after_main_content.html">sensei_after_main_content</a></li><li><a href="sensei_after_sending_email.html">sensei_after_sending_email</a></li><li><a href="sensei_after_template_part.html">sensei_after_template_part</a></li><li><a href="sensei_after_user_course_content.html">sensei_after_user_course_content</a></li><li><a href="sensei_after_user_courses.html">sensei_after_user_courses</a></li><li><a href="sensei_analysis_after_headers.html">sensei_analysis_after_headers</a></li><li><a href="sensei_analysis_extra.html">sensei_analysis_extra</a></li><li><a href="sensei_archive_after_course_loop.html">sensei_archive_after_course_loop</a></li><li><a href="sensei_archive_after_lesson_loop.html">sensei_archive_after_lesson_loop</a></li><li><a href="sensei_archive_after_message_loop.html">sensei_archive_after_message_loop</a></li><li><a href="sensei_archive_before_course_loop.html">sensei_archive_before_course_loop</a></li><li><a href="sensei_archive_before_lesson_loop.html">sensei_archive_before_lesson_loop</a></li><li><a href="sensei_archive_before_message_loop.html">sensei_archive_before_message_loop</a></li><li><a href="sensei_before_active_user_courses.html">sensei_before_active_user_courses</a></li><li><a href="sensei_before_completed_user_courses.html">sensei_before_completed_user_courses</a></li><li><a href="sensei_before_email_content.html">sensei_before_email_content</a></li><li><a href="sensei_before_email_template.html">sensei_before_email_template</a></li><li><a href="sensei_before_learner_course_content.html">sensei_before_learner_course_content</a></li><li><a href="sensei_before_learners_enrolled_courses_query.html">sensei_before_learners_enrolled_courses_query</a></li><li><a href="sensei_before_list_table.html">sensei_before_list_table</a></li><li><a href="sensei_before_mail.html">sensei_before_mail</a></li><li><a href="sensei_before_main_content.html">sensei_before_main_content</a></li><li><a href="sensei_before_my_courses.html">sensei_before_my_courses</a></li><li><a href="sensei_before_template_part.html">sensei_before_template_part</a></li><li><a href="sensei_before_user_course_content.html">sensei_before_user_course_content</a></li><li><a href="sensei_before_user_courses.html">sensei_before_user_courses</a></li><li><a href="sensei_complete_course.html">sensei_complete_course</a></li><li><a href="sensei_complete_lesson.html">sensei_complete_lesson</a></li><li><a href="sensei_complete_lesson_button.html">sensei_complete_lesson_button</a></li><li><a href="sensei_content_lesson_after.html">sensei_content_lesson_after</a></li><li><a href="sensei_content_lesson_before.html">sensei_content_lesson_before</a></li><li><a href="sensei_content_lesson_inside_after.html">sensei_content_lesson_inside_after</a></li><li><a href="sensei_content_lesson_inside_before.html">sensei_content_lesson_inside_before</a></li><li><a href="sensei_content_message_before.html">sensei_content_message_before</a></li><li><a href="sensei_content_message_inside_after.html">sensei_content_message_inside_after</a></li><li><a href="sensei_content_message_inside_before.html">sensei_content_message_inside_before</a></li><li><a href="sensei_course_archive_meta.html">sensei_course_archive_meta</a></li><li><a href="sensei_course_content_after.html">sensei_course_content_after</a></li><li><a href="sensei_course_content_before.html">sensei_course_content_before</a></li><li><a href="sensei_course_content_inside_after.html">sensei_course_content_inside_after</a></li><li><a href="sensei_course_content_inside_before.html">sensei_course_content_inside_before</a></li><li><a href="sensei_course_enrolment_status_changed.html">sensei_course_enrolment_status_changed</a></li><li><a href="sensei_course_learning_mode_load_override_styles.html">sensei_course_learning_mode_load_override_styles</a></li><li><a href="sensei_course_learning_mode_load_theme.html">sensei_course_learning_mode_load_theme</a></li><li><a href="sensei_course_learning_mode_override_theme.html">sensei_course_learning_mode_override_theme</a></li><li><a href="sensei_course_meta_before_save.html">sensei_course_meta_before_save</a></li><li><a href="sensei_course_meta_inside_after.html">sensei_course_meta_inside_after</a></li><li><a href="sensei_course_meta_inside_before.html">sensei_course_meta_inside_before</a></li><li><a href="sensei_course_new_teacher_assigned.html">sensei_course_new_teacher_assigned</a></li><li><a href="sensei_course_results_after_lessons.html">sensei_course_results_after_lessons</a></li><li><a href="sensei_course_results_before_lessons.html">sensei_course_results_before_lessons</a></li><li><a href="sensei_course_results_content_after.html">sensei_course_results_content_after</a></li><li><a href="sensei_course_results_content_before.html">sensei_course_results_content_before</a></li><li><a href="sensei_course_results_content_inside_after.html">sensei_course_results_content_inside_after</a></li><li><a href="sensei_course_results_content_inside_before.html">sensei_course_results_content_inside_before</a></li><li><a href="sensei_course_results_content_inside_before_lessons.html">sensei_course_results_content_inside_before_lessons</a></li><li><a href="sensei_course_status_updated.html">sensei_course_status_updated</a></li><li><a href="sensei_course_structure_lesson_created.html">sensei_course_structure_lesson_created</a></li><li><a href="sensei_course_structure_quiz_created.html">sensei_course_structure_quiz_created</a></li><li><a href="sensei_data_port_complete.html">sensei_data_port_complete</a></li><li><a href="sensei_disable_legacy_emails.html">sensei_disable_legacy_emails</a></li><li><a href="sensei_email_mailpoet_sync_subscribers.html">sensei_email_mailpoet_sync_subscribers</a></li><li><a href="sensei_email_send.html">sensei_email_send</a></li><li><a href="sensei_emails.html">sensei_emails</a></li><li><a href="sensei_enrolment_results_calculated.html">sensei_enrolment_results_calculated</a></li><li><a href="sensei_frontend_messages.html">sensei_frontend_messages</a></li><li><a href="sensei_grading_after_headers.html">sensei_grading_after_headers</a></li><li><a href="sensei_grading_before_dropdown_filters.html">sensei_grading_before_dropdown_filters</a></li><li><a href="sensei_grading_extra.html">sensei_grading_extra</a></li><li><a href="sensei_learner_admin_after_container.html">sensei_learner_admin_after_container</a></li><li><a href="sensei_learner_admin_before_container.html">sensei_learner_admin_before_container</a></li><li><a href="sensei_learner_admin_extra.html">sensei_learner_admin_extra</a></li><li><a href="sensei_learner_admin_wrapper_container.html">sensei_learner_admin_wrapper_container</a></li><li><a href="sensei_learner_profile_content_after.html">sensei_learner_profile_content_after</a></li><li><a href="sensei_learner_profile_content_before.html">sensei_learner_profile_content_before</a></li><li><a href="sensei_learner_profile_info.html">sensei_learner_profile_info</a></li><li><a href="sensei_learner_profile_inside_content_after.html">sensei_learner_profile_inside_content_after</a></li><li><a href="sensei_learner_profile_inside_content_before.html">sensei_learner_profile_inside_content_before</a></li><li><a href="sensei_learners_add_learner_form.html">sensei_learners_add_learner_form</a></li><li><a href="sensei_learners_after_headers.html">sensei_learners_after_headers</a></li><li><a href="sensei_learners_before_dropdown_filters.html">sensei_learners_before_dropdown_filters</a></li><li><a href="sensei_learners_extra.html">sensei_learners_extra</a></li><li><a href="sensei_lesson_back_link.html">sensei_lesson_back_link</a></li><li><a href="sensei_lesson_meta_extra.html">sensei_lesson_meta_extra</a></li><li><a href="sensei_lesson_status_updated.html">sensei_lesson_status_updated</a></li><li><a href="sensei_lesson_video.html">sensei_lesson_video</a></li><li><a href="sensei_lms_installed.html">sensei_lms_installed</a></li><li><a href="sensei_loaded.html">sensei_loaded</a></li><li><a href="sensei_log_activity_after.html">sensei_log_activity_after</a></li><li><a href="sensei_log_activity_before.html">sensei_log_activity_before</a></li><li><a href="sensei_login_form_after.html">sensei_login_form_after</a></li><li><a href="sensei_login_form_before.html">sensei_login_form_before</a></li><li><a href="sensei_login_form_inside_after.html">sensei_login_form_inside_after</a></li><li><a href="sensei_login_form_inside_after_password_field.html">sensei_login_form_inside_after_password_field</a></li><li><a href="sensei_login_form_inside_before.html">sensei_login_form_inside_before</a></li><li><a href="sensei_loop_course_after.html">sensei_loop_course_after</a></li><li><a href="sensei_loop_course_before.html">sensei_loop_course_before</a></li><li><a href="sensei_loop_course_inside_after.html">sensei_loop_course_inside_after</a></li><li><a href="sensei_loop_course_inside_before.html">sensei_loop_course_inside_before</a></li><li><a href="sensei_loop_lesson_after.html">sensei_loop_lesson_after</a></li><li><a href="sensei_loop_lesson_before.html">sensei_loop_lesson_before</a></li><li><a href="sensei_loop_lesson_inside_after.html">sensei_loop_lesson_inside_after</a></li><li><a href="sensei_loop_lesson_inside_before.html">sensei_loop_lesson_inside_before</a></li><li><a href="sensei_loop_message_after.html">sensei_loop_message_after</a></li><li><a href="sensei_loop_message_before.html">sensei_loop_message_before</a></li><li><a href="sensei_loop_message_inside_after.html">sensei_loop_message_inside_after</a></li><li><a href="sensei_loop_message_inside_before.html">sensei_loop_message_inside_before</a></li><li><a href="sensei_manual_enrolment_learner_enrolled.html">sensei_manual_enrolment_learner_enrolled</a></li><li><a href="sensei_manual_enrolment_learner_withdrawn.html">sensei_manual_enrolment_learner_withdrawn</a></li><li><a href="sensei_module_save_user_progress.html">sensei_module_save_user_progress</a></li><li><a href="sensei_my_courses_after.html">sensei_my_courses_after</a></li><li><a href="sensei_my_courses_before.html">sensei_my_courses_before</a></li><li><a href="sensei_my_courses_content_inside_after.html">sensei_my_courses_content_inside_after</a></li><li><a href="sensei_my_courses_content_inside_before.html">sensei_my_courses_content_inside_before</a></li><li><a href="sensei_new_private_message.html">sensei_new_private_message</a></li><li><a href="sensei_output_course_enrolment_actions.html">sensei_output_course_enrolment_actions</a></li><li><a href="sensei_pagination.html">sensei_pagination</a></li><li><a href="sensei_private_message_reply.html">sensei_private_message_reply</a></li><li><a href="sensei_pro_groups_menu_item.html">sensei_pro_groups_menu_item</a></li><li><a href="sensei_quiz_back_link.html">sensei_quiz_back_link</a></li><li><a href="sensei_quiz_create.html">sensei_quiz_create</a></li><li><a href="sensei_quiz_question_answers_inside_after.html">sensei_quiz_question_answers_inside_after</a></li><li><a href="sensei_quiz_question_answers_inside_before.html">sensei_quiz_question_answers_inside_before</a></li><li><a href="sensei_quiz_question_inside_after.html">sensei_quiz_question_inside_after</a></li><li><a href="sensei_quiz_question_inside_before.html">sensei_quiz_question_inside_before</a></li><li><a href="sensei_register_form_end.html">sensei_register_form_end</a></li><li><a href="sensei_register_form_fields.html">sensei_register_form_fields</a></li><li><a href="sensei_register_form_start.html">sensei_register_form_start</a></li><li><a href="sensei_register_widgets.html">sensei_register_widgets</a></li><li><a href="sensei_reports_overview_after_top_filters.html">sensei_reports_overview_after_top_filters</a></li><li><a href="sensei_reports_overview_before_top_filters.html">sensei_reports_overview_before_top_filters</a></li><li><a href="sensei_reports_overview_students_data_provider_pre_user_query.html">sensei_reports_overview_students_data_provider_pre_user_query</a></li><li><a href="sensei_reset_lesson_button.html">sensei_reset_lesson_button</a></li><li><a href="sensei_rest_api_category_question_saved.html">sensei_rest_api_category_question_saved</a></li><li><a href="sensei_rest_api_lesson_quiz_update.html">sensei_rest_api_lesson_quiz_update</a></li><li><a href="sensei_rest_api_question_saved.html">sensei_rest_api_question_saved</a></li><li><a href="sensei_settings_after_links.html">sensei_settings_after_links</a></li><li><a href="sensei_sidebar.html">sensei_sidebar</a></li><li><a href="sensei_single_course_content_inside_after.html">sensei_single_course_content_inside_after</a></li><li><a href="sensei_single_course_content_inside_before.html">sensei_single_course_content_inside_before</a></li><li><a href="sensei_single_course_inside_after_lesson.html">sensei_single_course_inside_after_lesson</a></li><li><a href="sensei_single_course_inside_before_lesson.html">sensei_single_course_inside_before_lesson</a></li><li><a href="sensei_single_course_lessons_after.html">sensei_single_course_lessons_after</a></li><li><a href="sensei_single_course_lessons_before.html">sensei_single_course_lessons_before</a></li><li><a href="sensei_single_course_modules_after.html">sensei_single_course_modules_after</a></li><li><a href="sensei_single_course_modules_before.html">sensei_single_course_modules_before</a></li><li><a href="sensei_single_course_modules_inside_after.html">sensei_single_course_modules_inside_after</a></li><li><a href="sensei_single_course_modules_inside_before.html">sensei_single_course_modules_inside_before</a></li><li><a href="sensei_single_lesson_content_inside_after.html">sensei_single_lesson_content_inside_after</a></li><li><a href="sensei_single_lesson_content_inside_before.html">sensei_single_lesson_content_inside_before</a></li><li><a href="sensei_single_message_content_inside_after.html">sensei_single_message_content_inside_after</a></li><li><a href="sensei_single_message_content_inside_before.html">sensei_single_message_content_inside_before</a></li><li><a href="sensei_single_quiz_content_inside_after.html">sensei_single_quiz_content_inside_after</a></li><li><a href="sensei_single_quiz_content_inside_before.html">sensei_single_quiz_content_inside_before</a></li><li><a href="sensei_single_quiz_questions_after.html">sensei_single_quiz_questions_after</a></li><li><a href="sensei_single_quiz_questions_before.html">sensei_single_quiz_questions_before</a></li><li><a href="sensei_taxonomy_module_content_after.html">sensei_taxonomy_module_content_after</a></li><li><a href="sensei_taxonomy_module_content_before.html">sensei_taxonomy_module_content_before</a></li><li><a href="sensei_taxonomy_module_content_inside_after.html">sensei_taxonomy_module_content_inside_after</a></li><li><a href="sensei_taxonomy_module_content_inside_before.html">sensei_taxonomy_module_content_inside_before</a></li><li><a href="sensei_teacher_archive_course_loop_after.html">sensei_teacher_archive_course_loop_after</a></li><li><a href="sensei_teacher_archive_course_loop_before.html">sensei_teacher_archive_course_loop_before</a></li><li><a href="sensei_tools_listing_after_%257B$tool_id%257D.html">sensei_tools_listing_after_{$tool_id}</a></li><li><a href="sensei_tools_progress_tables_deleted.html">sensei_tools_progress_tables_deleted</a></li><li><a href="sensei_user_course_end.html">sensei_user_course_end</a></li><li><a href="sensei_user_course_reset.html">sensei_user_course_reset</a></li><li><a href="sensei_user_course_start.html">sensei_user_course_start</a></li><li><a href="sensei_user_lesson_end.html">sensei_user_lesson_end</a></li><li><a href="sensei_user_lesson_reset.html">sensei_user_lesson_reset</a></li><li><a href="sensei_user_lesson_start.html">sensei_user_lesson_start</a></li><li><a href="sensei_user_quiz_grade.html">sensei_user_quiz_grade</a></li><li><a href="sensei_user_quiz_submitted.html">sensei_user_quiz_submitted</a></li><li><a href="sensei_utils_check_for_activity_after_get_comments.html">sensei_utils_check_for_activity_after_get_comments</a></li><li><a href="sensei_utils_check_for_activity_before_get_comments.html">sensei_utils_check_for_activity_before_get_comments</a></li><li><a href="sensei_%257B$post_type%257D_initial_publish.html">sensei_{$post_type}_initial_publish</a></li><li><a href="settings_after_form.html">settings_after_form</a></li><li><a href="settings_before_form.html">settings_before_form</a></li><li><a href="wpml_restore_language_from_email.html">wpml_restore_language_from_email</a></li><li><a href="wpml_switch_language_for_email.html">wpml_switch_language_for_email</a></li></ul><h3>Filters</h3><ul><li><a href="sensei_add_comment_indexes.html">sensei_add_comment_indexes</a></li><li><a href="sensei_admin_notices.html">sensei_admin_notices</a></li><li><a href="sensei_analysis_course_columns.html">sensei_analysis_course_columns</a></li><li><a href="sensei_analysis_course_columns_sortable.html">sensei_analysis_course_columns_sortable</a></li><li><a href="sensei_analysis_course_completions.html">sensei_analysis_course_completions</a></li><li><a href="sensei_analysis_course_filter_lessons.html">sensei_analysis_course_filter_lessons</a></li><li><a href="sensei_analysis_course_filter_statuses.html">sensei_analysis_course_filter_statuses</a></li><li><a href="sensei_analysis_course_no_items_text.html">sensei_analysis_course_no_items_text</a></li><li><a href="sensei_analysis_course_percentage.html">sensei_analysis_course_percentage</a></li><li><a href="sensei_analysis_course_search_users.html">sensei_analysis_course_search_users</a></li><li><a href="sensei_analysis_course_sub_menu.html">sensei_analysis_course_sub_menu</a></li><li><a href="sensei_analysis_course_user_lesson.html">sensei_analysis_course_user_lesson</a></li><li><a href="sensei_analysis_course_%257Bview%257D_columns.html">sensei_analysis_course_{view}_columns</a></li><li><a href="sensei_analysis_course_%257Bview%257D_columns_sortable.html">sensei_analysis_course_{view}_columns_sortable</a></li><li><a href="sensei_analysis_lesson_columns.html">sensei_analysis_lesson_columns</a></li><li><a href="sensei_analysis_lesson_columns_sortable.html">sensei_analysis_lesson_columns_sortable</a></li><li><a href="sensei_analysis_lesson_completions.html">sensei_analysis_lesson_completions</a></li><li><a href="sensei_analysis_lesson_filter_statuses.html">sensei_analysis_lesson_filter_statuses</a></li><li><a href="sensei_analysis_lesson_grades.html">sensei_analysis_lesson_grades</a></li><li><a href="sensei_analysis_lesson_learners.html">sensei_analysis_lesson_learners</a></li><li><a href="sensei_analysis_lesson_search_users.html">sensei_analysis_lesson_search_users</a></li><li><a href="sensei_analysis_nav_title.html">sensei_analysis_nav_title</a></li><li><a href="sensei_analysis_overview_column_data.html">sensei_analysis_overview_column_data</a></li><li><a href="sensei_analysis_overview_columns.html">sensei_analysis_overview_columns</a></li><li><a href="sensei_analysis_overview_columns_sortable.html">sensei_analysis_overview_columns_sortable</a></li><li><a href="sensei_analysis_overview_courses_columns.html">sensei_analysis_overview_courses_columns</a></li><li><a href="sensei_analysis_overview_courses_columns_sortable.html">sensei_analysis_overview_courses_columns_sortable</a></li><li><a href="sensei_analysis_overview_filter_courses.html">sensei_analysis_overview_filter_courses</a></li><li><a href="sensei_analysis_overview_filter_lessons.html">sensei_analysis_overview_filter_lessons</a></li><li><a href="sensei_analysis_overview_filter_users.html">sensei_analysis_overview_filter_users</a></li><li><a href="sensei_analysis_overview_lessons_columns.html">sensei_analysis_overview_lessons_columns</a></li><li><a href="sensei_analysis_overview_lessons_columns_sortable.html">sensei_analysis_overview_lessons_columns_sortable</a></li><li><a href="sensei_analysis_overview_users_columns.html">sensei_analysis_overview_users_columns</a></li><li><a href="sensei_analysis_overview_users_columns_sortable.html">sensei_analysis_overview_users_columns_sortable</a></li><li><a href="sensei_analysis_overview_%257Btype%257D_columns.html">sensei_analysis_overview_{type}_columns</a></li><li><a href="sensei_analysis_overview_%257Btype%257D_columns_sortable.html">sensei_analysis_overview_{type}_columns_sortable</a></li><li><a href="sensei_analysis_sub_menu.html">sensei_analysis_sub_menu</a></li><li><a href="sensei_analysis_user_courses_ended.html">sensei_analysis_user_courses_ended</a></li><li><a href="sensei_analysis_user_courses_started.html">sensei_analysis_user_courses_started</a></li><li><a href="sensei_analysis_user_lesson_grades.html">sensei_analysis_user_lesson_grades</a></li><li><a href="sensei_analysis_user_profile_columns.html">sensei_analysis_user_profile_columns</a></li><li><a href="sensei_analysis_user_profile_columns_sortable.html">sensei_analysis_user_profile_columns_sortable</a></li><li><a href="sensei_analysis_user_profile_filter_statuses.html">sensei_analysis_user_profile_filter_statuses</a></li><li><a href="sensei_answer_text.html">sensei_answer_text</a></li><li><a href="sensei_archive_courses_per_page.html">sensei_archive_courses_per_page</a></li><li><a href="sensei_autogradable_question_types.html">sensei_autogradable_question_types</a></li><li><a href="sensei_background_job_actions.html">sensei_background_job_actions</a></li><li><a href="sensei_block_course_progress_course_id.html">sensei_block_course_progress_course_id</a></li><li><a href="sensei_block_take_course_course_id.html">sensei_block_take_course_course_id</a></li><li><a href="sensei_block_type_args.html">sensei_block_type_args</a></li><li><a href="sensei_breadcrumb_output.html">sensei_breadcrumb_output</a></li><li><a href="sensei_breadcrumb_separator.html">sensei_breadcrumb_separator</a></li><li><a href="sensei_can_access_course_content.html">sensei_can_access_course_content</a></li><li><a href="sensei_can_use_users_relationship.html">sensei_can_use_users_relationship</a></li><li><a href="sensei_can_user_manually_enrol.html">sensei_can_user_manually_enrol</a></li><li><a href="sensei_can_user_view_lesson.html">sensei_can_user_view_lesson</a></li><li><a href="sensei_can_user_view_module.html">sensei_can_user_view_module</a></li><li><a href="sensei_check_for_activity.html">sensei_check_for_activity</a></li><li><a href="sensei_clock_init.html">sensei_clock_init</a></li><li><a href="sensei_comment_counts_include_sensei_comments.html">sensei_comment_counts_include_sensei_comments</a></li><li><a href="sensei_comments_per_page.html">sensei_comments_per_page</a></li><li><a href="sensei_complete_lesson_redirect_url.html">sensei_complete_lesson_redirect_url</a></li><li><a href="sensei_context_notices.html">sensei_context_notices</a></li><li><a href="sensei_count_statuses.html">sensei_count_statuses</a></li><li><a href="sensei_count_statuses_args.html">sensei_count_statuses_args</a></li><li><a href="sensei_course_archive_page_url.html">sensei_course_archive_page_url</a></li><li><a href="sensei_course_block_template.html">sensei_course_block_template</a></li><li><a href="sensei_course_category_slug.html">sensei_course_category_slug</a></li><li><a href="sensei_course_complete_prerequisite_message.html">sensei_course_complete_prerequisite_message</a></li><li><a href="sensei_course_completed_page_id.html">sensei_course_completed_page_id</a></li><li><a href="sensei_course_completed_page_template.html">sensei_course_completed_page_template</a></li><li><a href="sensei_course_completed_page_url.html">sensei_course_completed_page_url</a></li><li><a href="sensei_course_completion_percentage.html">sensei_course_completion_percentage</a></li><li><a href="sensei_course_completion_statement.html">sensei_course_completion_statement</a></li><li><a href="sensei_course_content_has_access.html">sensei_course_content_has_access</a></li><li><a href="sensei_course_count.html">sensei_course_count</a></li><li><a href="sensei_course_custom_navigation_tabs.html">sensei_course_custom_navigation_tabs</a></li><li><a href="sensei_course_enrolment_providers.html">sensei_course_enrolment_providers</a></li><li><a href="sensei_course_enrolment_providers_prevent_manual_enrol.html">sensei_course_enrolment_providers_prevent_manual_enrol</a></li><li><a href="sensei_course_enrolment_store_results.html">sensei_course_enrolment_store_results</a></li><li><a href="sensei_course_get_lessons.html">sensei_course_get_lessons</a></li><li><a href="sensei_course_image_html.html">sensei_course_image_html</a></li><li><a href="sensei_course_is_prerequisite_complete.html">sensei_course_is_prerequisite_complete</a></li><li><a href="sensei_course_learning_mode_enabled.html">sensei_course_learning_mode_enabled</a></li><li><a href="sensei_course_learning_mode_theme_override_enabled.html">sensei_course_learning_mode_theme_override_enabled</a></li><li><a href="sensei_course_list_block_patterns_extra_links.html">sensei_course_list_block_patterns_extra_links</a></li><li><a href="sensei_course_loop_content_class.html">sensei_course_loop_content_class</a></li><li><a href="sensei_course_loop_number_of_columns.html">sensei_course_loop_number_of_columns</a></li><li><a href="sensei_course_meta_default_save.html">sensei_course_meta_default_save</a></li><li><a href="sensei_course_meta_fields.html">sensei_course_meta_fields</a></li><li><a href="sensei_course_open_access.html">sensei_course_open_access</a></li><li><a href="sensei_course_pass_grade.html">sensei_course_pass_grade</a></li><li><a href="sensei_course_placeholder_image_url.html">sensei_course_placeholder_image_url</a></li><li><a href="sensei_course_progress_create_course_id.html">sensei_course_progress_create_course_id</a></li><li><a href="sensei_course_progress_delete_for_course_course_id.html">sensei_course_progress_delete_for_course_course_id</a></li><li><a href="sensei_course_progress_find_course_id.html">sensei_course_progress_find_course_id</a></li><li><a href="sensei_course_progress_get_course_id.html">sensei_course_progress_get_course_id</a></li><li><a href="sensei_course_progress_has_course_id.html">sensei_course_progress_has_course_id</a></li><li><a href="sensei_course_progress_stats.html">sensei_course_progress_stats</a></li><li><a href="sensei_course_show_lessons.html">sensei_course_show_lessons</a></li><li><a href="sensei_course_slug.html">sensei_course_slug</a></li><li><a href="sensei_course_start_course_id.html">sensei_course_start_course_id</a></li><li><a href="sensei_course_the_title.html">sensei_course_the_title</a></li><li><a href="sensei_course_user_grade.html">sensei_course_user_grade</a></li><li><a href="sensei_courses_navigation_sidebar.html">sensei_courses_navigation_sidebar</a></li><li><a href="sensei_courses_page_template.html">sensei_courses_page_template</a></li><li><a href="sensei_csv_export_filename.html">sensei_csv_export_filename</a></li><li><a href="sensei_custom_navigation_allowed_screens.html">sensei_custom_navigation_allowed_screens</a></li><li><a href="sensei_default_feature_flag_settings.html">sensei_default_feature_flag_settings</a></li><li><a href="sensei_disable_styles.html">sensei_disable_styles</a></li><li><a href="sensei_do_link_to_module.html">sensei_do_link_to_module</a></li><li><a href="sensei_duplicate_post_args.html">sensei_duplicate_post_args</a></li><li><a href="sensei_duplicate_post_ignore_meta.html">sensei_duplicate_post_ignore_meta</a></li><li><a href="sensei_email.html">sensei_email</a></li><li><a href="sensei_email_classes.html">sensei_email_classes</a></li><li><a href="sensei_email_course_teachers.html">sensei_email_course_teachers</a></li><li><a href="sensei_email_data.html">sensei_email_data</a></li><li><a href="sensei_email_generators.html">sensei_email_generators</a></li><li><a href="sensei_email_heading.html">sensei_email_heading</a></li><li><a href="sensei_email_is_available.html">sensei_email_is_available</a></li><li><a href="sensei_email_list_columns.html">sensei_email_list_columns</a></li><li><a href="sensei_email_list_row_actions.html">sensei_email_list_row_actions</a></li><li><a href="sensei_email_list_row_data.html">sensei_email_list_row_data</a></li><li><a href="sensei_email_mailpoet_feature.html">sensei_email_mailpoet_feature</a></li><li><a href="sensei_email_replacements.html">sensei_email_replacements</a></li><li><a href="sensei_email_seeder_data.html">sensei_email_seeder_data</a></li><li><a href="sensei_email_subject.html">sensei_email_subject</a></li><li><a href="sensei_enable_enrolment_provider_journal.html">sensei_enable_enrolment_provider_journal</a></li><li><a href="sensei_enrolment_course_calculation_job_batch_size.html">sensei_enrolment_course_calculation_job_batch_size</a></li><li><a href="sensei_enrolment_history_size.html">sensei_enrolment_history_size</a></li><li><a href="sensei_enrolment_learner_calculation_job_batch_size.html">sensei_enrolment_learner_calculation_job_batch_size</a></li><li><a href="sensei_enrolment_message_log_size.html">sensei_enrolment_message_log_size</a></li><li><a href="sensei_event_logging_base_fields.html">sensei_event_logging_base_fields</a></li><li><a href="sensei_existing_questions_query_results.html">sensei_existing_questions_query_results</a></li><li><a href="sensei_feature_course_preview_lessons.html">sensei_feature_course_preview_lessons</a></li><li><a href="sensei_feature_open_access_courses.html">sensei_feature_open_access_courses</a></li><li><a href="sensei_feature_preview_students.html">sensei_feature_preview_students</a></li><li><a href="sensei_file_upload_args.html">sensei_file_upload_args</a></li><li><a href="sensei_file_upload_file_prefix.html">sensei_file_upload_file_prefix</a></li><li><a href="sensei_filter_category_questions_by_author.html">sensei_filter_category_questions_by_author</a></li><li><a href="sensei_filter_module_terms_by_owner.html">sensei_filter_module_terms_by_owner</a></li><li><a href="sensei_filter_queries_set_author.html">sensei_filter_queries_set_author</a></li><li><a href="sensei_frontend_learner_enrolment_handler.html">sensei_frontend_learner_enrolment_handler</a></li><li><a href="sensei_gap_fill_case_sensitive_grading.html">sensei_gap_fill_case_sensitive_grading</a></li><li><a href="sensei_get_all_courses.html">sensei_get_all_courses</a></li><li><a href="sensei_get_image_size_%25257Bimage_size%25257D.html">sensei_get_image_size_{image_size}</a></li><li><a href="sensei_get_question_grade.html">sensei_get_question_grade</a></li><li><a href="sensei_get_question_template_data.html">sensei_get_question_template_data</a></li><li><a href="sensei_get_%257Bpage%257D_page_id.html">sensei_get_{page}_page_id</a></li><li><a href="sensei_grade_question_auto.html">sensei_grade_question_auto</a></li><li><a href="sensei_grading_allowed_user_ids.html">sensei_grading_allowed_user_ids</a></li><li><a href="sensei_grading_count_statues.html">sensei_grading_count_statues</a></li><li><a href="sensei_grading_count_statuses.html">sensei_grading_count_statuses</a></li><li><a href="sensei_grading_default_columns.html">sensei_grading_default_columns</a></li><li><a href="sensei_grading_default_columns_sortable.html">sensei_grading_default_columns_sortable</a></li><li><a href="sensei_grading_display_quiz_question.html">sensei_grading_display_quiz_question</a></li><li><a href="sensei_grading_filter_courses.html">sensei_grading_filter_courses</a></li><li><a href="sensei_grading_filter_lessons.html">sensei_grading_filter_lessons</a></li><li><a href="sensei_grading_filter_statuses.html">sensei_grading_filter_statuses</a></li><li><a href="sensei_grading_main_column_data.html">sensei_grading_main_column_data</a></li><li><a href="sensei_grading_nav_title.html">sensei_grading_nav_title</a></li><li><a href="sensei_grading_search_users.html">sensei_grading_search_users</a></li><li><a href="sensei_grading_sub_menu.html">sensei_grading_sub_menu</a></li><li><a href="sensei_guest_user_supported_actions.html">sensei_guest_user_supported_actions</a></li><li><a href="sensei_home_is_plugin_licensed_%257B$plugin_slug%257D.html">sensei_home_is_plugin_licensed_{$plugin_slug}</a></li><li><a href="sensei_home_promo_banner_show.html">sensei_home_promo_banner_show</a></li><li><a href="sensei_home_remote_data_other_plugins.html">sensei_home_remote_data_other_plugins</a></li><li><a href="sensei_home_remote_data_primary_plugin_slug.html">sensei_home_remote_data_primary_plugin_slug</a></li><li><a href="sensei_home_remote_data_retry_error.html">sensei_home_remote_data_retry_error</a></li><li><a href="sensei_home_support_ticket_creation_upsell_show.html">sensei_home_support_ticket_creation_upsell_show</a></li><li><a href="sensei_home_tasks.html">sensei_home_tasks</a></li><li><a href="sensei_icon_href.html">sensei_icon_href</a></li><li><a href="sensei_import_attachment_request_timeout.html">sensei_import_attachment_request_timeout</a></li><li><a href="sensei_import_csv_delimiter.html">sensei_import_csv_delimiter</a></li><li><a href="sensei_import_csv_delimiter_options.html">sensei_import_csv_delimiter_options</a></li><li><a href="sensei_is_enrolled.html">sensei_is_enrolled</a></li><li><a href="sensei_is_enrolment_background_job_enabled.html">sensei_is_enrolment_background_job_enabled</a></li><li><a href="sensei_is_legacy_enrolled.html">sensei_is_legacy_enrolled</a></li><li><a href="sensei_is_login_required.html">sensei_is_login_required</a></li><li><a href="sensei_learner_admin_get_row_data.html">sensei_learner_admin_get_row_data</a></li><li><a href="sensei_learner_courses_page_template.html">sensei_learner_courses_page_template</a></li><li><a href="sensei_learner_enrolled_courses_args.html">sensei_learner_enrolled_courses_args</a></li><li><a href="sensei_learner_full_name.html">sensei_learner_full_name</a></li><li><a href="sensei_learner_get_course_ids_by_progress_status_course_ids.html">sensei_learner_get_course_ids_by_progress_status_course_ids</a></li><li><a href="sensei_learner_get_enrolled_courses_query_args_term_id.html">sensei_learner_get_enrolled_courses_query_args_term_id</a></li><li><a href="sensei_learner_profile_courses_heading.html">sensei_learner_profile_courses_heading</a></li><li><a href="sensei_learner_profile_courses_heading_name.html">sensei_learner_profile_courses_heading_name</a></li><li><a href="sensei_learner_profile_info_avatar.html">sensei_learner_profile_info_avatar</a></li><li><a href="sensei_learner_profile_info_bio.html">sensei_learner_profile_info_bio</a></li><li><a href="sensei_learner_profile_info_name.html">sensei_learner_profile_info_name</a></li><li><a href="sensei_learner_profile_permalink.html">sensei_learner_profile_permalink</a></li><li><a href="sensei_learner_profiles_url_base.html">sensei_learner_profiles_url_base</a></li><li><a href="sensei_learners_add_learner_redirect_url.html">sensei_learners_add_learner_redirect_url</a></li><li><a href="sensei_learners_admin_get_known_bulk_actions.html">sensei_learners_admin_get_known_bulk_actions</a></li><li><a href="sensei_learners_allowed_user_ids.html">sensei_learners_allowed_user_ids</a></li><li><a href="sensei_learners_default_columns.html">sensei_learners_default_columns</a></li><li><a href="sensei_learners_default_columns_sortable.html">sensei_learners_default_columns_sortable</a></li><li><a href="sensei_learners_filter_courses.html">sensei_learners_filter_courses</a></li><li><a href="sensei_learners_filter_lessons.html">sensei_learners_filter_lessons</a></li><li><a href="sensei_learners_filter_users.html">sensei_learners_filter_users</a></li><li><a href="sensei_learners_learner_updated.html">sensei_learners_learner_updated</a></li><li><a href="sensei_learners_nav_title.html">sensei_learners_nav_title</a></li><li><a href="sensei_learners_no_items_text.html">sensei_learners_no_items_text</a></li><li><a href="sensei_learners_query.html">sensei_learners_query</a></li><li><a href="sensei_learners_search_users.html">sensei_learners_search_users</a></li><li><a href="sensei_learners_sub_menu.html">sensei_learners_sub_menu</a></li><li><a href="sensei_learning_mode_block_templates.html">sensei_learning_mode_block_templates</a></li><li><a href="sensei_learning_mode_lesson_status_icon.html">sensei_learning_mode_lesson_status_icon</a></li><li><a href="sensei_lesson_archive_title.html">sensei_lesson_archive_title</a></li><li><a href="sensei_lesson_block_template.html">sensei_lesson_block_template</a></li><li><a href="sensei_lesson_content_drip_hide.html">sensei_lesson_content_drip_hide</a></li><li><a href="sensei_lesson_count.html">sensei_lesson_count</a></li><li><a href="sensei_lesson_course_signup_notice_level.html">sensei_lesson_course_signup_notice_level</a></li><li><a href="sensei_lesson_course_signup_notice_message.html">sensei_lesson_course_signup_notice_message</a></li><li><a href="sensei_lesson_excerpt.html">sensei_lesson_excerpt</a></li><li><a href="sensei_lesson_placeholder_image_url.html">sensei_lesson_placeholder_image_url</a></li><li><a href="sensei_lesson_prerequisite.html">sensei_lesson_prerequisite</a></li><li><a href="sensei_lesson_preview_title_text.html">sensei_lesson_preview_title_text</a></li><li><a href="sensei_lesson_progress_count_course_id.html">sensei_lesson_progress_count_course_id</a></li><li><a href="sensei_lesson_progress_create_lesson_id.html">sensei_lesson_progress_create_lesson_id</a></li><li><a href="sensei_lesson_progress_delete_for_lesson_lesson_id.html">sensei_lesson_progress_delete_for_lesson_lesson_id</a></li><li><a href="sensei_lesson_progress_find_lesson_id.html">sensei_lesson_progress_find_lesson_id</a></li><li><a href="sensei_lesson_progress_get_lesson_id.html">sensei_lesson_progress_get_lesson_id</a></li><li><a href="sensei_lesson_progress_has_lesson_id.html">sensei_lesson_progress_has_lesson_id</a></li><li><a href="sensei_lesson_quiz_questions.html">sensei_lesson_quiz_questions</a></li><li><a href="sensei_lesson_show_actions.html">sensei_lesson_show_actions</a></li><li><a href="sensei_lesson_show_course_signup_notice.html">sensei_lesson_show_course_signup_notice</a></li><li><a href="sensei_lesson_slug.html">sensei_lesson_slug</a></li><li><a href="sensei_lesson_tag_archive_description.html">sensei_lesson_tag_archive_description</a></li><li><a href="sensei_lesson_tag_archive_title.html">sensei_lesson_tag_archive_title</a></li><li><a href="sensei_lesson_tag_slug.html">sensei_lesson_tag_slug</a></li><li><a href="sensei_lesson_take_course_url.html">sensei_lesson_take_course_url</a></li><li><a href="sensei_list_bulk_actions.html">sensei_list_bulk_actions</a></li><li><a href="sensei_list_table_search_button_text.html">sensei_list_table_search_button_text</a></li><li><a href="sensei_lms_schema_get_tables.html">sensei_lms_schema_get_tables</a></li><li><a href="sensei_load_default_supported_theme_wrappers.html">sensei_load_default_supported_theme_wrappers</a></li><li><a href="sensei_locate_template.html">sensei_locate_template</a></li><li><a href="sensei_log_event.html">sensei_log_event</a></li><li><a href="sensei_login_logout_menu_title.html">sensei_login_logout_menu_title</a></li><li><a href="sensei_login_success_redirect_url.html">sensei_login_success_redirect_url</a></li><li><a href="sensei_login_url.html">sensei_login_url</a></li><li><a href="sensei_message_archive_title.html">sensei_message_archive_title</a></li><li><a href="sensei_messages_send_message_link.html">sensei_messages_send_message_link</a></li><li><a href="sensei_messages_slug.html">sensei_messages_slug</a></li><li><a href="sensei_module_archive_description.html">sensei_module_archive_description</a></li><li><a href="sensei_module_archive_title.html">sensei_module_archive_title</a></li><li><a href="sensei_module_course_column_max_links_count.html">sensei_module_course_column_max_links_count</a></li><li><a href="sensei_module_course_signup_notice_level.html">sensei_module_course_signup_notice_level</a></li><li><a href="sensei_module_course_signup_notice_message.html">sensei_module_course_signup_notice_message</a></li><li><a href="sensei_module_show_course_signup_notice.html">sensei_module_show_course_signup_notice</a></li><li><a href="sensei_module_slug.html">sensei_module_slug</a></li><li><a href="sensei_modules_title.html">sensei_modules_title</a></li><li><a href="sensei_multiple_question_slug.html">sensei_multiple_question_slug</a></li><li><a href="sensei_my_courses_per_page.html">sensei_my_courses_per_page</a></li><li><a href="sensei_notice.html">sensei_notice</a></li><li><a href="sensei_notices_screen_ids.html">sensei_notices_screen_ids</a></li><li><a href="sensei_notify_admin_new_course_creation.html">sensei_notify_admin_new_course_creation</a></li><li><a href="sensei_placeholder_thumbnail.html">sensei_placeholder_thumbnail</a></li><li><a href="sensei_pre_grade_question_auto.html">sensei_pre_grade_question_auto</a></li><li><a href="sensei_pre_kses.html">sensei_pre_kses</a></li><li><a href="sensei_question_answer_message_correct_answer.html">sensei_question_answer_message_correct_answer</a></li><li><a href="sensei_question_answer_message_css_class.html">sensei_question_answer_message_css_class</a></li><li><a href="sensei_question_answer_message_grade.html">sensei_question_answer_message_grade</a></li><li><a href="sensei_question_answer_message_text.html">sensei_question_answer_message_text</a></li><li><a href="sensei_question_answer_notes.html">sensei_question_answer_notes</a></li><li><a href="sensei_question_category_slug.html">sensei_question_category_slug</a></li><li><a href="sensei_question_classes.html">sensei_question_classes</a></li><li><a href="sensei_question_image_size.html">sensei_question_image_size</a></li><li><a href="sensei_question_show_answers.html">sensei_question_show_answers</a></li><li><a href="sensei_question_title.html">sensei_question_title</a></li><li><a href="sensei_question_type_slug.html">sensei_question_type_slug</a></li><li><a href="sensei_question_type_specific_properties.html">sensei_question_type_specific_properties</a></li><li><a href="sensei_question_types.html">sensei_question_types</a></li><li><a href="sensei_questions_get_correct_answer.html">sensei_questions_get_correct_answer</a></li><li><a href="sensei_quiz_answer_create_question_id.html">sensei_quiz_answer_create_question_id</a></li><li><a href="sensei_quiz_answer_create_submission_id.html">sensei_quiz_answer_create_submission_id</a></li><li><a href="sensei_quiz_answer_delete_all_submission_id.html">sensei_quiz_answer_delete_all_submission_id</a></li><li><a href="sensei_quiz_answer_file_upload_types.html">sensei_quiz_answer_file_upload_types</a></li><li><a href="sensei_quiz_answer_get_all_submission_id.html">sensei_quiz_answer_get_all_submission_id</a></li><li><a href="sensei_quiz_course_signup_notice_message.html">sensei_quiz_course_signup_notice_message</a></li><li><a href="sensei_quiz_enable_block_based_editor.html">sensei_quiz_enable_block_based_editor</a></li><li><a href="sensei_quiz_grade_create_answer_id.html">sensei_quiz_grade_create_answer_id</a></li><li><a href="sensei_quiz_grade_create_question_id.html">sensei_quiz_grade_create_question_id</a></li><li><a href="sensei_quiz_grade_create_submission_id.html">sensei_quiz_grade_create_submission_id</a></li><li><a href="sensei_quiz_grade_delete_all_submission_id.html">sensei_quiz_grade_delete_all_submission_id</a></li><li><a href="sensei_quiz_grade_get_all_submission_id.html">sensei_quiz_grade_get_all_submission_id</a></li><li><a href="sensei_quiz_grade_save_many_question_id.html">sensei_quiz_grade_save_many_question_id</a></li><li><a href="sensei_quiz_grade_save_many_submission_id.html">sensei_quiz_grade_save_many_submission_id</a></li><li><a href="sensei_quiz_ordering_question_type_hide.html">sensei_quiz_ordering_question_type_hide</a></li><li><a href="sensei_quiz_pagination_args.html">sensei_quiz_pagination_args</a></li><li><a href="sensei_quiz_panel_add.html">sensei_quiz_panel_add</a></li><li><a href="sensei_quiz_progress_create_quiz_id.html">sensei_quiz_progress_create_quiz_id</a></li><li><a href="sensei_quiz_progress_delete_for_quiz_quiz_id.html">sensei_quiz_progress_delete_for_quiz_quiz_id</a></li><li><a href="sensei_quiz_progress_find_quiz_id.html">sensei_quiz_progress_find_quiz_id</a></li><li><a href="sensei_quiz_progress_get_quiz_id.html">sensei_quiz_progress_get_quiz_id</a></li><li><a href="sensei_quiz_progress_has_quiz_id.html">sensei_quiz_progress_has_quiz_id</a></li><li><a href="sensei_quiz_question_ai_upsell_scripts.html">sensei_quiz_question_ai_upsell_scripts</a></li><li><a href="sensei_quiz_question_points_format.html">sensei_quiz_question_points_format</a></li><li><a href="sensei_quiz_settings.html">sensei_quiz_settings</a></li><li><a href="sensei_quiz_slug.html">sensei_quiz_slug</a></li><li><a href="sensei_quiz_submission_create_quiz_id.html">sensei_quiz_submission_create_quiz_id</a></li><li><a href="sensei_quiz_submission_get_or_create_quiz_id.html">sensei_quiz_submission_get_or_create_quiz_id</a></li><li><a href="sensei_quiz_submission_get_question_ids_submission_id.html">sensei_quiz_submission_get_question_ids_submission_id</a></li><li><a href="sensei_quiz_submission_get_quiz_id.html">sensei_quiz_submission_get_quiz_id</a></li><li><a href="sensei_quiz_type_slug.html">sensei_quiz_type_slug</a></li><li><a href="sensei_register_post_type_course.html">sensei_register_post_type_course</a></li><li><a href="sensei_register_post_type_lesson.html">sensei_register_post_type_lesson</a></li><li><a href="sensei_register_post_type_question.html">sensei_register_post_type_question</a></li><li><a href="sensei_register_post_type_quiz.html">sensei_register_post_type_quiz</a></li><li><a href="sensei_register_post_type_sensei_message.html">sensei_register_post_type_sensei_message</a></li><li><a href="sensei_registration_redirect.html">sensei_registration_redirect</a></li><li><a href="sensei_registration_url.html">sensei_registration_url</a></li><li><a href="sensei_reports_overview_export_button_url.html">sensei_reports_overview_export_button_url</a></li><li><a href="sensei_rest_api_lesson_quiz_response.html">sensei_rest_api_lesson_quiz_response</a></li><li><a href="sensei_rest_api_schema_question_type.html">sensei_rest_api_schema_question_type</a></li><li><a href="sensei_rest_api_schema_single_question.html">sensei_rest_api_schema_single_question</a></li><li><a href="sensei_restrict_posts_menu_page.html">sensei_restrict_posts_menu_page</a></li><li><a href="sensei_results_links.html">sensei_results_links</a></li><li><a href="sensei_round_mode.html">sensei_round_mode</a></li><li><a href="sensei_round_precision.html">sensei_round_precision</a></li><li><a href="sensei_scheduler_class.html">sensei_scheduler_class</a></li><li><a href="sensei_scripts_allowed_pages.html">sensei_scripts_allowed_pages</a></li><li><a href="sensei_scripts_allowed_post_type_pages.html">sensei_scripts_allowed_post_type_pages</a></li><li><a href="sensei_scripts_allowed_post_types.html">sensei_scripts_allowed_post_types</a></li><li><a href="sensei_self_enrollment_not_allowed.html">sensei_self_enrollment_not_allowed</a></li><li><a href="sensei_send_emails.html">sensei_send_emails</a></li><li><a href="sensei_settings_content.html">sensei_settings_content</a></li><li><a href="sensei_settings_content_drip_hide.html">sensei_settings_content_drip_hide</a></li><li><a href="sensei_settings_fields.html">sensei_settings_fields</a></li><li><a href="sensei_settings_my_course_page_id.html">sensei_settings_my_course_page_id</a></li><li><a href="sensei_settings_tabs.html">sensei_settings_tabs</a></li><li><a href="sensei_settings_woocommerce_hide.html">sensei_settings_woocommerce_hide</a></li><li><a href="sensei_shortcode_user_courses_display_course_toggle_actions.html">sensei_shortcode_user_courses_display_course_toggle_actions</a></li><li><a href="sensei_should_defer_enrolment_check.html">sensei_should_defer_enrolment_check</a></li><li><a href="sensei_show_admin_notices_%257B$screen_id%257D.html">sensei_show_admin_notices_{$screen_id}</a></li><li><a href="sensei_show_enrolment_debug_button.html">sensei_show_enrolment_debug_button</a></li><li><a href="sensei_show_lesson_numbers.html">sensei_show_lesson_numbers</a></li><li><a href="sensei_show_main_footer.html">sensei_show_main_footer</a></li><li><a href="sensei_show_main_header.html">sensei_show_main_header</a></li><li><a href="sensei_single_title.html">sensei_single_title</a></li><li><a href="sensei_start_course_redirect_url.html">sensei_start_course_redirect_url</a></li><li><a href="sensei_student_groups_hide.html">sensei_student_groups_hide</a></li><li><a href="sensei_student_progress_read_from_tables.html">sensei_student_progress_read_from_tables</a></li><li><a href="sensei_students_report_last_activity_filter_enabled.html">sensei_students_report_last_activity_filter_enabled</a></li><li><a href="sensei_teacher_archive_query.html">sensei_teacher_archive_query</a></li><li><a href="sensei_teacher_course_ids.html">sensei_teacher_course_ids</a></li><li><a href="sensei_teachers_shortcode_list_item.html">sensei_teachers_shortcode_list_item</a></li><li><a href="sensei_template_url.html">sensei_template_url</a></li><li><a href="sensei_the_module_description.html">sensei_the_module_description</a></li><li><a href="sensei_the_module_id.html">sensei_the_module_id</a></li><li><a href="sensei_the_module_permalink.html">sensei_the_module_permalink</a></li><li><a href="sensei_the_module_status_html.html">sensei_the_module_status_html</a></li><li><a href="sensei_the_module_title.html">sensei_the_module_title</a></li><li><a href="sensei_the_no_permissions_message.html">sensei_the_no_permissions_message</a></li><li><a href="sensei_the_no_permissions_title.html">sensei_the_no_permissions_title</a></li><li><a href="sensei_the_question_number.html">sensei_the_question_number</a></li><li><a href="sensei_the_title_classes.html">sensei_the_title_classes</a></li><li><a href="sensei_the_title_html_tag.html">sensei_the_title_html_tag</a></li><li><a href="sensei_tools.html">sensei_tools</a></li><li><a href="sensei_usage_tracking_data.html">sensei_usage_tracking_data</a></li><li><a href="sensei_use_wp_register_link.html">sensei_use_wp_register_link</a></li><li><a href="sensei_user_completed_lesson.html">sensei_user_completed_lesson</a></li><li><a href="sensei_user_course_status_%257Bstatus%257D.html">sensei_user_course_status_{status}</a></li><li><a href="sensei_user_courses_filter_options.html">sensei_user_courses_filter_options</a></li><li><a href="sensei_user_courses_query.html">sensei_user_courses_query</a></li><li><a href="sensei_user_question_feedback.html">sensei_user_question_feedback</a></li><li><a href="sensei_user_quiz_status.html">sensei_user_quiz_status</a></li><li><a href="sensei_user_quiz_status_%257Bstatus%257D.html">sensei_user_quiz_status_{status}</a></li><li><a href="sensei_user_started_course.html">sensei_user_started_course</a></li><li><a href="sensei_utils_user_completed_lesson_lesson_id.html">sensei_utils_user_completed_lesson_lesson_id</a></li><li><a href="sensei_video_position.html">sensei_video_position</a></li><li><a href="sensei_wpcom_product_slugs.html">sensei_wpcom_product_slugs</a></li><li><a href="widget_course_categories_args.html">widget_course_categories_args</a></li><li><a href="widget_course_categories_dropdown_args.html">widget_course_categories_dropdown_args</a></li></ul>
</nav>
<br class="clear">
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>