We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66a39fe commit b988393Copy full SHA for b988393
templates/learning-area/index.php
@@ -17,6 +17,7 @@
17
wp_head();
18
19
// Tutor global variable for using inside learning area.
20
+$current_user_id = get_current_user_id();
21
$tutor_current_post_type = get_post_type();
22
$tutor_current_post = get_post();
23
$tutor_current_content_id = get_the_ID();
@@ -26,7 +27,6 @@
26
27
$tutor_is_enrolled = tutor_utils()->is_enrolled( $tutor_course_id );
28
$tutor_is_public_course = Course_List::is_public( $tutor_course_id );
29
$tutor_is_course_instructor = tutor_utils()->has_user_course_content_access( $current_user_id, $tutor_course_id );
-$current_user_id = get_current_user_id();
30
31
$subpages = Template::make_learning_area_sub_page_nav_items();
32
?>
0 commit comments