learndash_quiz_shortcode_function( array $atts = array(), string $content = '', string $shortcode_slug = 'ld_quiz' )
Builds the [ld_quiz]
shortcode output.
Description #
Parameters #
- $atts
-
(array) (Optional) An array of shortcode attributes.
- 'course_id'
(int) Course ID. Default 0. - 'quiz_id'
(int) Quiz ID. Default 0. - 'quiz_pro_id'
(int) Quiz pro ID. Default 0.
Default value: array()
- 'course_id'
- $content
-
(string) (Optional) The shortcode content.
Default value: ''
- $shortcode_slug
-
(string) (Optional) The shortcode slug.
Default value: 'ld_quiz'
Return #
(string) The ld_quiz
shortcode output.
Source #
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/shortcodes/shortcodes-functions.php: learndash_shortcode_can_current_user_access_post () |
Checks if the current user can access the post. |
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode_override_output |
Should quiz output be overridden? |
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode_output |
Filter quiz output. |
includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_get_parent_incomplete_step () |
Get the parent incomplete step. |
includes/course/ld-activity-functions.php: learndash_activity_update_meta_set () |
Update activity meta set. |
includes/course/ld-activity-functions.php: learndash_activity_start_lesson () |
Set the lesson activity started record. |
includes/course/ld-activity-functions.php: learndash_activity_start_topic () |
Set the topic activity started record. |
includes/course/ld-activity-functions.php: learndash_activity_start_course () |
Set the course activity started record. |
includes/course/ld-course-progress.php: learndash_prerequities_bypass |
Bypass prerequisites. |
includes/course/ld-course-progress.php: learndash_is_quiz_accessable () |
Checks if the quiz is accessible to the user. |
includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_is_step_complete () |
Utility function to get check if the course step is complete. |
includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_get_previous_incomplete_step () |
Utility function to get the previous incomplete course step for user. |
includes/quiz/ld-quiz-functions.php: learndash_quiz_convert_lock_cookie () |
Convert Quiz Lock Cookie |
includes/course/ld-course-functions.php: learndash_can_user_bypass () |
Check if user can bypass action ($context). |
themes/class-ld-themes-register.php: LearnDash_Theme_Register::get_active_theme_instance () |
Get the instance of the current active theme. |
includes/ld-misc-functions.php: learndash_ob_get_clean () |
Helper function for PHP output buffering. |
includes/settings/settings-functions.php: learndash_get_setting () |
Gets the LearnDash setting for a post. |
includes/settings/settings-functions.php: learndash_update_setting () |
Updates the LearnDash setting for a post. |
includes/ld-misc-functions.php: learndash_is_sample () |
Checks if a lesson, topic, or quiz is a sample or not. |
includes/class-ld-custom-label.php: LearnDash_Custom_Label::get_label () |
Get label based on key name. |
includes/class-ld-lms.php: SFWD_LMS::get_template () |
Get LearnDash template and pass data to be used in template |
includes/class-ldlms-post-types.php: learndash_get_post_type_slug () | |
includes/shortcodes/ld_course_resume.php: learndash_shortcode_atts |
Filters shortcode attributes. |
themes/ld30/templates/quiz.php: learndash_previous_step_completed |
Filter to override previous step completed. |
includes/class-ld-cpt-instance.php: learndash_content |
Filter content to be return inside div |
includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () |
Static function to get a Section Setting value. |
includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_QuizMapper.php: WpProQuiz_Model_QuizMapper::__construct () |
Constructor. |
includes/course/ld-course-progress.php: learndash_lesson_progression_enabled () |
Checks whether the lesson progression is enabled or not. |
includes/shortcodes/ld_quiz.php: learndash_quiz_attempts |
Filters the quiz attempts left for a user. |
includes/shortcodes/ld_quiz.php: learndash_content_access |
Filters quiz shortcode content access message. |
includes/shortcodes/ld_quiz.php: learndash_quiz_content |
Filters |
Used By #
Used By | Description |
---|---|
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode () |
Legacy function used when not calling the WordPress shortcode API. |