learndash_get_setting( int|WP_Post $post, string|null $setting = null )
Gets the LearnDash setting for a post.
Contents
Description #
Parameters #
- $post
-
(int|WP_Post) (Required) The
WP_Post
object or Post ID. - $setting
-
(string|null) (Optional) The slug of the setting to get.
Default value: null
Return #
(string|void) The value for requested setting.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
Uses #
Uses | Description |
---|---|
includes/course/ld-course-functions.php: learndash_get_lesson_id () |
Gets the lesson ID of a resource. |
includes/course/ld-course-functions.php: learndash_get_course_id () |
Gets the course ID for a resource. |
Used By #
Used By | Description |
---|---|
includes/course/ld-course-progress.php: learndash_is_quiz_accessable () |
Checks if the quiz is accessible to the user. |
includes/course/ld-course-functions-legacy.php: learndash_is_quiz_accessable_legacy () |
Checks if the quiz is accessible to the user (legacy). |
includes/course/ld-course-functions-legacy.php: learndash_get_course_progress_legacy () |
LEGACY: Gets the user’s current course progress. |
includes/course/ld-course-functions-legacy.php: learndash_process_mark_complete_legacy () |
LEGACY: Updates the user meta with completion status for any resource. |
includes/course/ld-course-functions-legacy.php: learndash_get_course_lessons_list_legacy () |
LEGACY: Gets the lesson list output for a course. |
includes/course/ld-course-functions-legacy.php: learndash_get_topic_list_legacy () |
LEGACY: Gets the topics list for a lesson. |
includes/course/ld-course-functions-legacy.php: learndash_get_course_quiz_list_legacy () |
LEGACY: Gets the quiz list output for a course. |
includes/course/ld-course-functions-legacy.php: learndash_get_lesson_quiz_list_legacy () |
LEGACY: Gets the quiz list output for a lesson. |
includes/course/ld-course-functions-legacy.php: learndash_get_global_quiz_list_legacy () |
LEGACY: Gets the quiz list for a resource. |
includes/classes/class-ldlms-model-user-quiz-progress.php: LDLMS_Model_User_Quiz_Progress::has_completed_step () |
Check if user has completed/passed a specific Quiz. |
includes/classes/class-ldlms-model-lesson.php: LDLMS_Model_Lesson::is_sample () |
Checks if lesson is sample. |
includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php: LD_REST_Quiz_Statistics_Controller_V2::users_for_stats () |
User IDs for fetching statistics. |
includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php: LD_REST_Quiz_Statistics_Controller_V2::can_access_stats () |
Permission callback for quiz-statistics endpoint. |
includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php: LD_REST_Quiz_Statistics_Controller_V2::can_access_stats_questions () |
Permission callback for quiz-statistics endpoint. |
includes/rest-api/v2/class-ld-rest-essays-controller.php: LD_REST_Essays_Controller_V2::update_rest_settings_field_value () |
Update REST Settings Field value. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::update_user_courses () |
Update a user courses. |
includes/rest-api/v2/class-ld-rest-users-courses-controller.php: LD_REST_Users_Courses_Controller_V2::delete_user_courses () |
Delete a user courses. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::rest_prepare_response_filter () |
Override the REST response links. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::update_courses_users () |
Updates a course users. |
includes/rest-api/v2/class-ld-rest-courses-users-controller.php: LD_REST_Courses_Users_Controller_V2::delete_courses_users () |
Delete course users. |
includes/rest-api/v2/class-ld-rest-assignments-controller.php: LD_REST_Assignments_Controller_V2::get_rest_settings_field_value () |
Get REST Setting Field value. |
includes/rest-api/v2/class-ld-rest-assignments-controller.php: LD_REST_Assignments_Controller_V2::update_rest_settings_field_value () |
Update REST Settings Field value. |
includes/rest-api/v2/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V2::get_rest_settings_field_value () |
Get REST Setting Field value. |
includes/rest-api/v2/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V2::update_rest_settings_field_value () |
Update REST Settings Field value. |
includes/quiz/ld-quiz-functions.php: learndash_quiz_get_repeats () | |
includes/ld-certificates.php: learndash_certificate_display () |
Display the PDF Certificate. |
includes/lib/paypal/ipn.php: LearnDash_PayPal_IPN::ipn_process_post_data () | |
includes/course/ld-course-video.php: Learndash_Course_Video::check_video_complete () |
Utility class method to allow add-hoc checks on video complete. |
includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::show_column_assignment_approval_status () |
Show the assignment Approval Status. |
includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::assignment_bulk_actions_approve () |
Handles approval of assignments in bulk. |
includes/admin/classes-posts-listings/class-learndash-admin-quizzes-listing.php: Learndash_Admin_Quizzes_Listing::show_column_shortcode () |
Show Course column for Step. |
includes/admin/classes-posts-edits/class-learndash-admin-assignment-edit.php: Learndash_Admin_Assignment_Edit::assignment_metabox_content () |
Adds approval Link to assignment metabox. |
includes/ld-misc-functions.php: learndash_get_allowed_upload_mime_extensions_for_post () |
Utility function to return a list of allowed upload file extensions. |
includes/ld-certificates.php: learndash_get_group_certificate_link () |
Get Group certificate link for user |
includes/ld-groups.php: learndash_get_group_courses_order () |
Gets the group courses order query arguments. |
includes/ld-groups.php: learndash_get_group_courses_per_page () |
Gets the group courses per page setting. |
includes/shortcodes/ld_groupinfo.php: learndash_groupinfo_shortcode () |
Shortcode that displays the requested group information |
themes/ld30/includes/helpers.php: learndash_get_points_awarded_array () |
Gets an array of points awarded for an assignment. |
themes/ld30/includes/login-register-functions.php: learndash_add_login_field_top () |
Adds a hidden form field to the login form. |
includes/ld-misc-functions.php: learndash_payment_buttons () |
Generates the LearnDash payment buttons output. |
includes/ld-misc-functions.php: learndash_is_sample () |
Checks if a lesson, topic, or quiz is a sample or not. |
includes/ld-assignment-uploads.php: learndash_check_upload () |
Checks whether the assignment upload is successfull or not. |
includes/ld-certificates.php: learndash_get_course_certificate_link () |
Gets the course certificate link for the user. |
includes/ld-assignment-uploads.php: learndash_get_assignment_points_awarded () |
Gets the value of the awarded assignment points. |
includes/ld-assignment-uploads.php: learndash_assignment_is_points_enabled () |
Checks if the points are enabled for the assignment. |
includes/ld-assignment-uploads.php: learndash_assignment_process_init () |
Handles the upload, delete, and mark as complete for the assignment. |
includes/ld-assignment-uploads.php: learndash_upload_assignment_init () |
Handles assignment uploads. |
includes/widgets/ld_lesson.php: Lesson_Widget::course_lessons_list () |
Sets up course lesson list HTML |
includes/class-ld-cpt.php: SFWD_CPT::show_content () |
To show content or not |
includes/class-ld-lms.php: SFWD_LMS::learndash_course_price_billing_cycle_html () |
Billing Cycle field html output for courses |
includes/class-ld-semper-fi-module.php: Semper_Fi_Module::enqueue_scripts () |
Load scripts for module, can pass data to module script. |
includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_content () |
Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter) |
includes/settings/class-ld-settings-metaboxes.php: LearnDash_Settings_Metabox::load_settings_values () |
Load the section settings values. |
includes/settings/class-ld-settings-metaboxes.php: LearnDash_Settings_Metabox::init_quiz_edit () | |
includes/settings/settings-metaboxes/class-ld-settings-metabox-course-users.php: LearnDash_Settings_Metabox_Course_Users_Settings::show_settings_metabox_fields () | |
includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-admin-data-handling-settings.php: LearnDash_Settings_Metabox_Quiz_Admin_Data_Handling_Settings::load_settings_values () |
Initialize the metabox settings values. |
includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-admin-data-handling-settings.php: LearnDash_Settings_Metabox_Quiz_Admin_Data_Handling_Settings::filter_saved_fields () |
Filter settings values for metabox before save to database. |
includes/settings/settings-metaboxes/class-ld-settings-metabox-course-display-content.php: LearnDash_Settings_Metabox_Course_Display_Content::load_settings_values () |
Initialize the metabox settings values. |
includes/rest-api/v1/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V1::ld_get_field_value () | |
includes/quiz/ld-quiz-pro.php: LD_QuizPro::wp_pro_quiz_completed () |
This function runs when a quiz is completed, and does the action ‘wp_pro_quiz_completed_quiz’ |
includes/quiz/ld-quiz-pro.php: LD_QuizPro::edithtml () |
Returns the HTML of the add or edit page for the current quiz. If advanced quizes are disabled, it returns an empty string. |
includes/quiz/ld-quiz-pro.php: LD_QuizPro::edit_process () |
Routes to the WpProQuiz_Controller_Quiz controller to output the add or edit page for quizes if not autosaving, post id is set, and the current user has permissions to add or edit quizes. If there is an available template to load, wordpress redirects to the proper URL. |
includes/shortcodes/ld_quizinfo.php: learndash_quizinfo () |
Builds the |
includes/shortcodes/ld_courseinfo.php: learndash_courseinfo () |
Builds the |
includes/quiz/ld-quiz-functions.php: learndash_update_pro_question () |
Adds a WPProQuiz question to mirror a Question post (sfwd-question). |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_QuizOverall.php: WpProQuiz_View_QuizOverall::show () | |
includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_ExportXml.php: WpProQuiz_Helper_ExportXml::export () | |
includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_Export.php: WpProQuiz_Helper_Export::getQuizMaster () | |
includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Quiz.php: WpProQuiz_Controller_Quiz::saveTemplate () | |
includes/gutenberg/blocks/ld-payment-buttons/index.php: LearnDash_Gutenberg_Payment_Buttons::render_block () |
Render Block |
includes/course/ld-course-functions.php: learndash_get_course_lessons_order () |
Gets the course lessons order query arguments. |
includes/course/ld-course-functions.php: learndash_get_course_topics_per_page () |
Determines the number of lesson topics to display per page. |
includes/course/ld-course-functions.php: learndash_get_course_lessons_per_page () |
Gets the course lessons per page setting. |
includes/course/ld-course-functions.php: learndash_get_course_prerequisite_compare () |
Gets the prerequisites compare value for a course. |
includes/course/ld-course-functions.php: learndash_get_course_points_enabled () |
Checks if the course points are enabled for a course. |
includes/course/ld-course-functions.php: learndash_get_course_points () |
Gets the course points for a given course ID. |
includes/course/ld-course-functions.php: learndash_get_course_points_access () |
Gets the course points access for a given course ID. |
includes/course/ld-course-functions.php: learndash_process_course_join () |
Handles the actions to be made when the user joins a course. |
includes/shortcodes/ld_course_content.php: learndash_course_content_shortcode () |
Builds the |
includes/course/ld-course-user-functions.php: ld_update_course_access () |
Updates the list of courses a user can access. |
includes/course/ld-course-user-functions.php: ld_lesson_access_from () |
Gets the timestamp of when a user can access the lesson. |
includes/course/ld-course-user-functions.php: lesson_visible_after () |
Gets when the lesson will be available. |
includes/course/ld-course-functions.php: learndash_get_course_prerequisite () |
Gets the list of course prerequisites for a given course. |
includes/course/ld-course-functions.php: learndash_get_course_prerequisite_enabled () |
Checks whether the prerequisites are enabled for a course. |
includes/course/ld-course-user-functions.php: ld_course_access_expired () |
Checks whether the user’s access to the course is expired. |
includes/course/ld-course-user-functions.php: ld_course_access_expires_on () |
Gets the amount of time until the course access expires for a user. |
includes/course/ld-course-navigation.php: learndash_previous_post_link () |
Generates the previous post link for lesson or topic. |
includes/course/ld-course-navigation.php: learndash_next_post_link () |
Generates the next post link for lesson or topic. |
includes/course/ld-course-progress.php: learndash_delete_quiz_progress () |
Deletes the quiz progress for a user. |
includes/course/ld-course-progress.php: learndash_lesson_progression_enabled () |
Checks whether the lesson progression is enabled or not. |
includes/course/ld-course-progress.php: learndash_process_mark_complete () |
Updates the user meta with completion status for any resource. |
includes/course/ld-course-progress.php: learndash_mark_complete () |
Outputs the HTML output to mark a course complete. |
includes/course/ld-course-progress.php: learndash_get_next_lesson_redirect () |
Redirects the user to next lesson. |
includes/course/ld-course-progress.php: learndash_quiz_redirect () |
Redirects the user after quiz completion. |
includes/course/ld-course-video.php: Learndash_Course_Video::process_mark_complete () |
Handle Mark Complete on Lesson or Topic with Video Progress enabled. |
includes/course/ld-course-video.php: Learndash_Course_Video::learndash_completion_redirect () |
Redirect after Mark Complete is performed. |
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode () |
Builds the |
includes/classes/class-ldlms-model-quiz-questions.php: LDLMS_Quiz_Questions::init () |
Iniitialize object vars. |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::learndash_admin_tabs () |
Set up admin tabs for each admin menu page under LearnDash |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::admin_header_panel () |
Show the new Admin header panel |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::get_quiz_base_url () | |
includes/admin/class-learndash-admin-user-profile-edit.php: Learndash_Admin_User_Profile_Edit::show_user_course_progress () |
Show User Courses Progress. |
includes/admin/classes-posts-listings/class-learndash-admin-quizzes-listing.php: Learndash_Admin_Quizzes_Listing::post_row_actions () |
Add Course Builder link to Courses row action array. |
includes/admin/classes-posts-edits/class-learndash-admin-quiz-edit.php: Learndash_Admin_Quiz_Edit::init_quiz_edit () |
Initialize the ProQuiz Quiz being edited. |
includes/admin/classes-posts-edits/class-learndash-admin-quiz-edit.php: Learndash_Admin_Quiz_Edit::save_post () |
Save metabox handler function. |
includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-course-access-list-convert.php: Learndash_Admin_Data_Upgrades_Course_Access_List_Convert::get_course_access_list () | |
includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-quiz-questions.php: Learndash_Admin_Data_Upgrades_Quiz_Questions::query_items () |
Common function to query needed items. |
includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-course-access-list.php: Learndash_Admin_Data_Upgrades_Course_Access_List::convert_course_access_list () |
Convert single course access list. |