llms_get_student( mixed $user = null )
Get an LLMS_Student
Description #Description
Parameters #Parameters
- $user
-
(mixed) (Optional) WP_User ID, instance of WP_User, or instance of any student class extending this class
Default value: null
Return #Return
(obj|false) LLMS_Student instance on success, false if user not found
Source #Source
File: includes/functions/llms.functions.person.php
function llms_get_student( $user = null ) { $student = new LLMS_Student( $user ); return $student->exists() ? $student : false; }
Expand full source code Collapse full source code View on GitHub
Changelog #Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |
Related #Related
Used By #Used By
Used By | Description |
---|---|
includes/llms.template.functions.php: lifterlms_course_continue_button() | |
includes/models/model.llms.section.php: LLMS_Section::get_percent_complete() |
Retrieve section completion percentage |
includes/models/model.llms.quiz.php: LLMS_Quiz::get_total_attempts_by_user() |
Get total attempts by user |
includes/models/model.llms.lesson.php: LLMS_Lesson::get_available_date() |
Get the date a course became or will become available according to element drip settings If there are no drip settings, the published date of the element will be returned |
includes/models/model.llms.quiz.php: LLMS_Quiz::is_open() |
Determine if a student can take the quiz |
includes/models/model.llms.quiz.php: LLMS_Quiz::get_remaining_attempts_by_user() |
Get remaining quiz attempts |
includes/models/model.llms.user.postmeta.php: LLMS_User_Postmeta::get_student() |
Retrieve a student obj for the meta item |
includes/models/model.llms.course.php: LLMS_Course::get_percent_complete() |
Get a user’s percentage completion through the course |
includes/models/model.llms.quiz.attempt.php: LLMS_Quiz_Attempt::init() |
Initialize a new quiz attempt by quiz and lesson for a user if no user is passed the current user will be used if no user found returns a WP_Error |
includes/models/model.llms.quiz.attempt.php: LLMS_Quiz_Attempt::get_student() |
Get an LLMS_Student for the quiz |
includes/llms.functions.core.php: llms_make_select2_student_array() |
Create an array that can be passed to metabox select elements configured as an llms-select2-student query-ier |
includes/abstracts/llms.abstract.privacy.php: LLMS_Abstract_Privacy::get_student_by_email() |
Retrieve an instance of an LLMS_Student from email address |
includes/abstracts/llms.abstract.user.data.php: LLMS_Abstract_User_Data::get_student() |
Allow extending classes to access the main student class |
includes/class-llms-grades.php: LLMS_Grades::get_grade() |
Main grade getter function Uses caching by default and can bypass cache when requested |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_memberships() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_my_courses_loop() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_my_memberships_loop() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_achievements() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_certificates() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_courses() | |
includes/functions/llms.functions.templates.dashboard.php: lifterlms_template_student_dashboard_my_grades() | |
includes/functions/llms.functions.templates.certificates.php: lifterlms_template_certificates_loop() | |
includes/functions/llms.functions.person.php: llms_can_user_bypass_restrictions() |
Determine whether or not a user can bypass enrollment, drip, and prerequisite restrictions |
includes/functions/llms.functions.person.php: llms_current_user_can() |
Checks LifterLMS user capabilities against an object |
includes/functions/llms.functions.templates.achievements.php: lifterlms_template_achievements_loop() | |
includes/functions/llms.functions.order.php: llms_setup_pending_order() |
Setup a pending order which can be passed to an LLMS_Payment_Gateway for processing. |
includes/functions/llms.functions.access.php: llms_is_post_restricted_by_membership() |
Determine if a WordPress post (of any type) is restricted to at least one LifterLMS Membership level |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::quiz_start() |
Start a Quiz Attempt |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::quiz_answer_question() |
AJAX Quiz answer question |
includes/class.llms.ajax.handler.php: LLMS_AJAX_Handler::quiz_end() |
End a quiz attempt |
includes/controllers/class.llms.controller.lesson.progression.php: LLMS_Controller_Lesson_Progression::quiz_maybe_prevent_lesson_completion() |
Before a lesson is marked as complete, check if all the lesson’s quiz requirements are met |
includes/shortcodes/class.llms.shortcode.course.outline.php: LLMS_Shortcode_Course_Outline::get_output() |
Retrieve the actual content of the shortcode |
includes/shortcodes/class.llms.shortcode.my.achievements.php: LLMS_Shortcode_My_Achievements::get_output() |
Retrieve the actual content of the shortcode |
includes/shortcodes/class.llms.shortcode.courses.php: LLMS_Shortcode_Courses::get_output() |
Retrieve the actual content of the shortcode |
includes/shortcodes/class.llms.shortcode.courses.php: LLMS_Shortcode_Courses::get_post__in() |
Retrieve an array of post ids based on submitted ID parameter and the mine parameter |
includes/admin/post-types/tables/class.llms.table.student.management.php: LLMS_Table_StudentManagement::get_data() |
Retrieve data for the columns |
includes/admin/post-types/meta-boxes/class.llms.meta.box.order.enrollment.php: LLMS_Meta_Box_Order_Enrollment::output() |
Function to field WP::output() method call. |
includes/emails/class.llms.email.php: LLMS_Email::add_recipient() |
Add a single recipient for sending to, cc, or bcc |
includes/class.llms.quiz.legacy.php: LLMS_Quiz_Legacy::get_users_last_attempt() | |
includes/class.llms.quiz.legacy.php: LLMS_Quiz_Legacy::get_assoc_lesson() |
Get lesson associated with quiz |
includes/notifications/controllers/class.llms.notification.controller.quiz.failed.php: LLMS_Notification_Controller_Quiz_Failed::get_test_settings() |
Get an array of LifterLMS Admin Page settings to send test notifications |
includes/notifications/controllers/class.llms.notification.controller.purchase.receipt.php: LLMS_Notification_Controller_Purchase_Receipt::get_test_settings() |
Get an array of LifterLMS Admin Page settings to send test notifications |
includes/notifications/controllers/class.llms.notification.controller.quiz.passed.php: LLMS_Notification_Controller_Quiz_Passed::get_test_settings() |
Get an array of LifterLMS Admin Page settings to send test notifications |
includes/notifications/controllers/class.llms.notification.controller.quiz.graded.php: LLMS_Notification_Controller_Quiz_Graded::get_test_settings() |
Get an array of LifterLMS Admin Page settings to send test notifications |
vendor/lifterlms/lifterlms-blocks/includes/class-llms-blocks-visibility.php: LLMS_Blocks_Visibility::get_enrollment_count_by_type() |
Get the number of enrollments for a user by post type. |
vendor/lifterlms/lifterlms-blocks/includes/class-llms-blocks-post-instructors.php: LLMS_Blocks_Post_Instructors::get_callback() |
Retrieve instructor information for a give object. |
User Contributed Notes #User Contributed Notes
Permalink: