-
Notifications
You must be signed in to change notification settings - Fork 198
/
includes_course-theme_class-sensei-course-theme.php.html
669 lines (541 loc) · 28.6 KB
/
includes_course-theme_class-sensei-course-theme.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Source: includes/course-theme/class-sensei-course-theme.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/course-theme/class-sensei-course-theme.php</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code><?php
/**
* File containing Sensei_Course_Theme class.
*
* @package sensei-lms
* @since 3.13.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Load the 'Sensei Course Theme' theme for the /learn subsite.
*
* @since 3.15.0
*/
class Sensei_Course_Theme {
/**
* URL prefix for loading the course theme.
*/
const QUERY_VAR = 'learn';
/**
* Update when rewrite rules change to make sure they are flushed.
*/
const REWRITE_VERSION = '3';
/**
* Course theme preview query var.
*/
const PREVIEW_QUERY_VAR = 'sensei_theme_preview';
/**
* Directory for the course theme.
*/
const THEME_NAME = 'sensei-course-theme';
/**
* Instance of class.
*
* @var self
*/
private static $instance;
/**
* Active theme on the site before override.
*
* @var string
*/
private $original_theme;
/**
* Sensei_Course_Theme constructor. Prevents other instances from being created outside of `self::instance()`.
*/
private function __construct() {
}
/**
* Fetches an instance of the class.
*
* @return self
*/
public static function instance() {
if ( ! self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Initializes the Course Theme.
*/
public function init() {
Sensei_Course_Theme_Templates::instance()->init();
Sensei_Course_Theme_Template_Selection::instance()->init();
// The following actions add '/learn' route. The '/learn' route is used only when the theme is overridden.
add_action( 'setup_theme', [ $this, 'add_query_var' ], 1 );
add_action( 'registered_post_type', [ $this, 'add_post_type_rewrite_rules' ], 10, 2 );
add_action( 'setup_theme', [ $this, 'maybe_override_theme' ], 2 );
add_action( 'shutdown', [ $this, 'maybe_flush_rewrite_rules' ] );
// Initialize quiz and lesson specific functionality.
add_action( 'template_redirect', [ $this, 'redirect_modules_to_first_lesson' ], 9 );
add_action( 'template_redirect', [ Sensei_Course_Theme_Lesson::instance(), 'init' ] );
add_filter( 'sensei_notice', [ Sensei_Course_Theme_Lesson::instance(), 'intercept_notice' ], 10, 1 );
add_action( 'template_redirect', [ Sensei_Course_Theme_Quiz::instance(), 'init' ] );
add_filter( 'the_content', [ $this, 'add_lesson_video_to_content' ], 80, 1 );
// Load learning mode assets and add hooks.
add_action( 'template_redirect', [ $this, 'load_theme' ] );
// Prevent module links in learning mode.
add_filter( 'sensei_do_link_to_module', [ $this, 'prevent_link_to_module' ] );
}
/**
* Checks if the theme is overridden which currently is not done by default.
*
* @deprecated
*
* @return bool
*/
public function is_active() {
_deprecated_function( __METHOD__, '4.7.0' );
return self::THEME_NAME === get_stylesheet();
}
/**
* Add the URL prefix the theme is active under.
*
* @param string $path Optional path to prefix.
*
* @return string|void
*/
public function get_theme_redirect_url( $path = '' ) {
if ( '' === get_option( 'permalink_structure' ) || get_query_var( 'preview' ) ) {
return home_url( add_query_arg( [ self::QUERY_VAR => 1 ], $path ) );
}
return home_url( '/' . self::QUERY_VAR . '/' . $path );
}
/**
* Replace theme for the current request if the '/learn' route is used.
*/
public function maybe_override_theme() {
// Do a cheaper preliminary check first.
$uri = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
// phpcs:ignore WordPress.Security.NonceVerification
if ( ! preg_match( '#' . preg_quote( '/' . self::QUERY_VAR . '/', '#' ) . '#i', $uri ) && ! isset( $_GET[ self::QUERY_VAR ] ) ) {
return;
}
// Then parse the request and make sure the query var is correct.
wp_load_translations_early();
wp();
if ( get_query_var( self::QUERY_VAR ) ) {
$this->override_theme();
}
}
/**
* Load course theme styles and add related filters.
*
* @return void
*/
public function load_theme() {
if ( ! Sensei_Course_Theme_Option::should_use_learning_mode() ) {
return;
}
Sensei_Course_Theme_Compat::instance()->load_theme();
Sensei_Course_Theme_Styles::init();
add_filter( 'sensei_use_sensei_template', '__return_false' );
add_filter( 'body_class', [ $this, 'add_sensei_theme_body_class' ] );
add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_styles' ] );
add_action( 'template_redirect', [ $this, 'admin_menu_init' ], 20 );
add_action( 'admin_init', [ $this, 'admin_menu_init' ], 20 );
/**
* Fires when learning mode is loaded for a page.
*
* @since 4.0.2
* @hook sensei_course_learning_mode_load_theme
*/
do_action( 'sensei_course_learning_mode_load_theme' );
}
/**
* Load a bundled theme for the request.
*/
public function override_theme() {
$this->original_theme = get_stylesheet();
add_filter( 'theme_root', [ $this, 'get_plugin_themes_root' ] );
add_filter( 'pre_option_stylesheet_root', [ $this, 'get_plugin_themes_root' ] );
add_filter( 'pre_option_template_root', [ $this, 'get_plugin_themes_root' ] );
add_filter( 'pre_option_template', [ $this, 'theme_template' ] );
add_filter( 'pre_option_stylesheet', [ $this, 'theme_stylesheet' ] );
add_filter( 'theme_root_uri', [ $this, 'theme_root_uri' ] );
/**
* Fires when the theme is override is added for learning mode.
*
* @since 4.0.2
* @hook sensei_course_learning_mode_override_theme
*/
do_action( 'sensei_course_learning_mode_override_theme' );
$this->load_theme();
remove_action( 'template_redirect', 'redirect_canonical' );
}
/**
* Add learning mode prefix as query var.
*
* @access private
*/
public function add_query_var() {
global $wp;
$wp->add_query_var( self::QUERY_VAR );
}
/**
* Flush rewrite rules if changed.
*
* @access private
*/
public function maybe_flush_rewrite_rules() {
if ( self::REWRITE_VERSION !== get_option( 'sensei_course_theme_query_var_flushed' ) ) {
flush_rewrite_rules( false );
update_option( 'sensei_course_theme_query_var_flushed', self::REWRITE_VERSION );
}
}
/**
* Add a route with a /learn prefix for using course theme for a post type.
*
* @access private
*
* @param string $post_type Post type name.
* @param WP_Post_Type $args Post type object.
*/
public function add_post_type_rewrite_rules( $post_type, $args ) {
if ( ! in_array( $post_type, [ 'lesson', 'quiz' ], true ) ) {
return;
}
$slug = preg_quote( $args->rewrite['slug'] ?? $post_type, '/' );
add_rewrite_rule( '^' . self::QUERY_VAR . '/' . $slug . '/([^/]+)(?:/([0-9]+))?\??(.*)', 'index.php?' . self::QUERY_VAR . '=1&' . $post_type . '=$matches[1]&page=$matches[2]&$matches[3]', 'top' );
add_rewrite_tag( '%' . self::QUERY_VAR . '%', '([^?]+)' );
}
/**
* Get course theme name.
*
* @access private
*
* @return string
*/
public function theme_template() {
return self::THEME_NAME;
}
/**
* Get course theme name.
*
* @access private
*
* @return string
*/
public function theme_stylesheet() {
return self::THEME_NAME;
}
/**
* Root URL for bundled themes.
*
* @access private
*
* @return string
*/
public function theme_root_uri() {
return Sensei()->plugin_url . '/themes';
}
/**
* Root directory for bundled themes.
*
* @access private
*
* @return string
*/
public function get_plugin_themes_root() {
return Sensei()->plugin_path() . 'themes';
}
/**
* Directory for course theme.
*
* @access private
*
* @return string
*/
public function get_course_theme_root() {
return $this->get_plugin_themes_root() . '/' . self::THEME_NAME;
}
/**
* Root URL for course theme.
*
* @access private
*
* @return string
*/
public function get_course_theme_root_url() {
return $this->theme_root_uri() . '/' . self::THEME_NAME;
}
/**
* Add Sensei theme body class.
*
* @access private
*
* @param string[] $classes The html classess to be added.
*
* @return string[] $classes
*/
public function add_sensei_theme_body_class( $classes ) {
return array_merge( $classes, [ self::THEME_NAME, 'sensei-' . Sensei_Course_Theme_Template_Selection::get_active_template_name() ] );
}
/**
* Get the version of the active Learning Mode template.
*
* @return string|null Version string in the format of 4-0-2
*/
private function get_template_version() {
global $_wp_current_template_content;
preg_match( '/sensei-version--(\d+-\d+-\d+)/', $_wp_current_template_content ?? '', $version_matches );
$version = $version_matches[1] ?? null;
// Versions before 4.0.2 didn't have a version tag, check for Ui blocks instead.
if ( ! $version && ! preg_match( '/wp:sensei-lms\/ui/', $_wp_current_template_content ) ) {
$version = '4-0-2';
}
return $version;
}
/**
* Enqueue styles.
*
* @access private
*/
public function enqueue_styles() {
$version = $this->get_template_version();
$css_file = 'css/learning-mode.' . $version . '.css';
$compat_css_file = 'css/learning-mode-compat.' . $version . '.css';
if ( ! $version || ! file_exists( Sensei()->assets->dist_path( $css_file ) ) ) {
$css_file = 'css/learning-mode.css';
}
if ( ! $version || ! file_exists( Sensei()->assets->dist_path( $compat_css_file ) ) ) {
$compat_css_file = 'css/learning-mode-compat.css';
}
Sensei()->assets->enqueue( self::THEME_NAME . '-style', $css_file );
if ( ! current_theme_supports( 'sensei-learning-mode' ) ) {
Sensei()->assets->enqueue( self::THEME_NAME . 'compatibility-style', $compat_css_file );
}
Sensei()->assets->enqueue( self::THEME_NAME . '-script', 'course-theme/learning-mode.js' );
Sensei()->assets->enqueue_script( 'sensei-blocks-frontend' );
$check_circle_icon = Sensei()->assets->get_icon( 'check-circle' );
wp_add_inline_script( self::THEME_NAME . '-script', "window.sensei = window.sensei || {}; window.sensei.checkCircleIcon = '$check_circle_icon';", 'before' );
$this->enqueue_fonts();
if ( Sensei_Course_Theme_Option::should_override_theme() ) {
Sensei()->assets->enqueue( self::THEME_NAME . '-theme-style', 'css/learning-mode.theme.css' );
/**
* Fires when the override theme styles are loaded for learning mode.
*
* @since 4.0.2
* @hook sensei_course_learning_mode_load_override_styles
*/
do_action( 'sensei_course_learning_mode_load_override_styles' );
}
}
/**
* Enqueue Google fonts.
*
* @access private
*/
public function enqueue_fonts() {
$font_families = [ 'family=Inter:wght@300;400;500;600;700', 'family=Source+Serif+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900' ];
$fonts_url = esc_url_raw( 'https://fonts.googleapis.com/css2?' . implode( '&', array_unique( $font_families ) ) . '&display=swap' );
//phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion -- External resource.
wp_enqueue_style( 'sensei-course-theme-fonts', $fonts_url, [], null );
}
/**
* Tells if sensei theme is in preview mode.
*
* @param int $course_id The id of the course.
*
* @return bool
*/
public static function is_preview_mode( $course_id ) {
// Do not allow sensei preview if not an administrator.
if ( ! current_user_can( 'manage_sensei' ) ) {
return false;
}
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- The user is administrator at this point. No need.
$query_var = isset( $_GET[ self::PREVIEW_QUERY_VAR ] ) ? intval( $_GET[ self::PREVIEW_QUERY_VAR ] ) : 0;
// Do not allow sensei preview if requested course id does not match.
if ( $query_var !== $course_id ) {
return false;
}
return true;
}
/**
* Returns the url for sensei theme customization.
*
* @param string|null $post_type The post type to customize.
*
* @return The customization url
*/
public static function get_learning_mode_fse_url( string $post_type = null ) : string {
// Get the post type manually if not provided.
if ( ! $post_type ) {
$post_type = get_post_type();
}
// Fallback the post type to lesson if not determined.
if ( ! $post_type ) {
$post_type = 'lesson';
}
return admin_url( 'site-editor.php?postType=wp_template&postId=' . self::THEME_NAME . '//' . $post_type );
}
/**
* Returnds the url for customizing Learning Mode template colors.
*/
public static function get_learning_mode_customizer_url(): string {
// Get the last modified lesson.
$result = get_posts(
[
'posts_per_page' => 1,
'post_type' => 'lesson',
'orderby' => 'modified',
'meta' => [
'key' => '_lesson_course',
'compare' => 'EXISTS',
],
]
);
if ( empty( $result ) ) {
return '';
}
$lesson = $result[0];
$course_id = get_post_meta( $lesson->ID, '_lesson_course', true );
$preview_url = '/?p=' . $lesson->ID;
if ( ! $course_id ) {
return '';
}
if ( ! Sensei_Course_Theme_Option::has_learning_mode_enabled( $course_id ) ) {
$preview_url .= '&' . self::PREVIEW_QUERY_VAR . '=' . $course_id;
}
return '/wp-admin/customize.php?autofocus[section]=sensei-course-theme&url=' . rawurlencode( $preview_url );
}
/**
* Replace 'Edit site' in admin bar to point to the current theme template.
*
* @access private
*/
public function admin_menu_init() {
if ( ! function_exists( 'wp_is_block_theme' ) ) {
return;
}
remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_site_menu', 40 );
add_action( 'admin_bar_menu', [ $this, 'add_admin_bar_edit_site_menu' ], 39 );
}
/**
* Add 'Edit site' in admin bar opening the current theme template.
*
* @access private
*
* @param WP_Admin_Bar $wp_admin_bar The WordPress Admin Bar object.
*
* @return void
*/
public function add_admin_bar_edit_site_menu( $wp_admin_bar ) {
if ( ! current_user_can( 'edit_theme_options' ) || is_admin() ) {
return;
}
$wp_admin_bar->add_node(
array(
'id' => 'site-editor',
'title' => __( 'Edit Site', 'sensei-lms' ),
'href' => self::get_learning_mode_fse_url( get_post_type() ),
)
);
}
/**
* Get the original active site theme.
*
* @return mixed
*/
public function get_original_theme() {
return $this->original_theme;
}
/**
* Filter the post content when using learning mode to add the video
* added through the legacy video embed meta box.
*
* @param string $content The post content.
*
* @return string The post content with the video.
*/
public function add_lesson_video_to_content( $content ) {
$course_id = \Sensei_Utils::get_current_course();
if ( is_admin() || ! is_single() || 'lesson' !== get_post_type() || ! Sensei_Course_Theme_Option::has_learning_mode_enabled( $course_id ) ) {
return $content;
}
ob_start();
Sensei()->frontend->sensei_lesson_video( get_the_ID() );
$video = ob_get_clean();
// Checks if video is already added in the content to avoid it duplicated when `the_content`
// filter is called more than once.
if ( ! empty( $video ) && false === strpos( $content, Sensei_Frontend::VIDEO_EMBED_CLASS ) ) {
return $video . $content;
}
return $content;
}
/**
* Prevent modules to be linked in learning mode.
*
* @since 4.7.0
*
* @param bool $do_link_to_module True if module should be linked to.
*
* @return bool
*/
public function prevent_link_to_module( bool $do_link_to_module ): bool {
if ( ! Sensei_Course_Theme_Option::should_use_learning_mode() ) {
return $do_link_to_module;
}
return false;
}
/**
* Redirect all module pages to the first module lesson.
*
* @since 4.7.0
*/
public function redirect_modules_to_first_lesson(): void {
if ( ! Sensei_Course_Theme_Option::should_use_learning_mode() || ! is_tax( 'module' ) ) {
return;
}
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- No action based on input.
$course_id = ! empty( $_GET['course_id'] ) ? (int) $_GET['course_id'] : Sensei_Utils::get_current_course();
if ( ! $course_id ) {
return;
}
$module_lessons = Sensei()->modules->get_lessons( $course_id, get_queried_object_id() );
if ( $module_lessons ) {
wp_safe_redirect( get_permalink( $module_lessons[0] ) );
die();
}
}
}
</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="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_new_teacher_assigned.html">sensei_course_new_teacher_assigned</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_send.html">sensei_email_send</a></li><li><a href="sensei_grading_allowed_user_ids.html">sensei_grading_allowed_user_ids</a></li><li><a href="sensei_loaded.html">sensei_loaded</a></li><li><a href="sensei_login_success_redirect_url.html">sensei_login_success_redirect_url</a></li><li><a href="sensei_new_private_message.html">sensei_new_private_message</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_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_tools_listing_after_%257B$tool_id%257D.html">sensei_tools_listing_after_{$tool_id}</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_nav_title.html">sensei_analysis_nav_title</a></li><li><a href="sensei_analysis_sub_menu.html">sensei_analysis_sub_menu</a></li><li><a href="sensei_block_type_args.html">sensei_block_type_args</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_context_notices.html">sensei_context_notices</a></li><li><a href="sensei_course_block_template.html">sensei_course_block_template</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_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_loop_content_class.html">sensei_course_loop_content_class</a></li><li><a href="sensei_course_open_access.html">sensei_course_open_access</a></li><li><a href="sensei_courses_page_template.html">sensei_courses_page_template</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_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_allowed_stylesheets.html">sensei_email_allowed_stylesheets</a></li><li><a href="sensei_email_generators.html">sensei_email_generators</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_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_styles.html">sensei_email_styles</a></li><li><a href="sensei_email_stylesheets.html">sensei_email_stylesheets</a></li><li><a href="sensei_existing_questions_query_results.html">sensei_existing_questions_query_results</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_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_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_grading_display_quiz_question.html">sensei_grading_display_quiz_question</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_icon_href.html">sensei_icon_href</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_login_required.html">sensei_is_login_required</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_learners_query.html">sensei_learners_query</a></li><li><a href="sensei_learning_mode_block_templates.html">sensei_learning_mode_block_templates</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_quiz_questions.html">sensei_lesson_quiz_questions</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_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_login_url.html">sensei_login_url</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_notice.html">sensei_notice</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_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_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_file_upload_types.html">sensei_quiz_answer_file_upload_types</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_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_settings.html">sensei_quiz_settings</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_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_settings_content.html">sensei_settings_content</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_student_groups_hide.html">sensei_student_groups_hide</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_the_question_number.html">sensei_the_question_number</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_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_wpcom_product_slugs.html">sensei_wpcom_product_slugs</a></li></ul>
</nav>
<br class="clear">
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>