learndash_get_setting( int|WP_Post $post, string|null $setting = null )
Gets the LearnDash setting for a post.
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 #
(mixed) The value for requested setting.
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/settings/settings-billing-functions.php: learndash_billing_cycle_field_frequency_validate () |
Validate the billing cycle field frequency. |
includes/settings/settings-billing-functions.php: learndash_billing_cycle_field_interval_validate () |
Validate the Billing cycle field interval. |
includes/class-ldlms-post-types.php: learndash_get_post_type_key () | |
includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_QuizMapper.php: WpProQuiz_Model_QuizMapper::__construct () | |
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-functions.php: learndash_course_get_completion_url () |
Returns the page url a user is redirected to after completing a course. |
includes/admin/classes-import-export/import/class-learndash-admin-import-associations-handler.php: Learndash_Admin_Import_Associations_Handler::update_coupons () |
Updates coupons. |
includes/admin/classes-import-export/import/class-learndash-admin-import-associations-handler.php: Learndash_Admin_Import_Associations_Handler::update_setting () |
Updates the post setting. |
includes/admin/classes-import-export/import/class-learndash-admin-import-posts.php: Learndash_Admin_Import_Posts::update_meta_after_insertion () |
Updates post meta after post is created. |
includes/admin/classes-import-export/export/class-learndash-admin-export-posts.php: Learndash_Admin_Export_Posts::get_special_media_ids () |
Returns media ids depending on the post type. |
includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_get_parent_incomplete_step () |
Get the parent incomplete step. |
includes/settings/settings-metaboxes/class-ld-settings-metabox-topic-access-settings.php: LearnDash_Settings_Metabox_Topic_Access_Settings::settings_row_input_inside_before () |
Filter function for |
includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-access-settings.php: LearnDash_Settings_Metabox_Quiz_Access_Settings::settings_row_input_inside_before () |
Filter function for |
includes/deprecated/4.7.0.1/functions.php: learndash_get_group_enrollment_url () |
Returns group enrollment url. |
includes/deprecated/4.7.0.1/functions.php: learndash_get_course_enrollment_url () |
Returns course enrollment url. |
includes/admin/classes-posts-listings/class-learndash-admin-coupons-listing.php: Learndash_Admin_Coupons_Listing::column_code () |
Show a coupon code. |
includes/admin/classes-posts-listings/class-learndash-admin-coupons-listing.php: Learndash_Admin_Coupons_Listing::column_discount () |
Show a discount. |
includes/admin/classes-posts-listings/class-learndash-admin-coupons-listing.php: Learndash_Admin_Coupons_Listing::column_redemptions () |
Show redemptions number. |
includes/admin/classes-posts-listings/class-learndash-admin-coupons-listing.php: Learndash_Admin_Coupons_Listing::column_state () |
Show a state (active, expired, future start date). |
includes/admin/classes-posts-listings/class-learndash-admin-coupons-listing.php: Learndash_Admin_Coupons_Listing::column_associated () |
Show courses/groups. |
includes/shortcodes/ld_materials.php: learndash_materials_shortcode_function () |
Builds the |
includes/shortcodes/ld_navigation.php: learndash_navigation_shortcode () |
Builds the |
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode_function () |
Builds the |
includes/gutenberg/blocks/ld-exam/index.php: LearnDash_Gutenberg_Block_Exam::pre_render_block () |
Pre-Render filter for Block. |
includes/exam/ld-exam-functions.php: learndash_exam_process_ajax () |
Handle Exam actions via AJAX requests from WP Profile page. |
includes/exam/ld-exam-functions.php: learndash_course_exam_challenge_redirect () |
Redirect the user to the associate challenge exam from the course. |
includes/exam/ld-exam-functions.php: learndash_exam_challenge_view_permission () |
Check user access to Exam posts. |
includes/classes/class-ldlms-model-exam.php: LDLMS_Model_Exam::get_result_button_params () |
Get Exam Result Message Button Parameters. |
includes/classes/class-ldlms-model-exam.php: LDLMS_Model_Exam::set_course_complete () |
Set the Exam Course as completed if the Exam was passed. |
includes/classes/class-ldlms-model-exam.php: LDLMS_Model_Exam::get_result_message () |
Get Exam result message after grading. |
includes/admin/classes-posts-listings/class-learndash-admin-exams-listing.php: Learndash_Admin_Exams_Listing::show_column_step_course_show () |
Show Exam Course “show” column. |
includes/admin/classes-posts-listings/class-learndash-admin-exams-listing.php: Learndash_Admin_Exams_Listing::show_column_step_course_passed () |
Show Exam Course “passed” column. |
includes/settings/settings-billing-functions.php: learndash_trial_duration_setting_field_html () |
Trial duration field html output for courses |
includes/deprecated/4.5.0/functions.php: learndash_paypal_get_purchase_success_redirect_url () |
Get the PayPal purchase success redirect URL. |
includes/settings/settings-billing-functions.php: learndash_billing_cycle_setting_field_html () |
Billing Cycle field html output for courses |
includes/admin/classes-posts-listings/class-learndash-admin-courses-listing.php: Learndash_Admin_Courses_Listing::show_column_price_type () |
Show Price Type column. |
includes/admin/classes-posts-listings/class-learndash-admin-groups-listing.php: Learndash_Admin_Groups_Listing::show_column_price_type () |
Show Price Type column. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::rest_after_insert_action () |
Fires after a single post is completely created or updated via the REST API. |
includes/rest-api/v2/class-ld-rest-quizzes-controller.php: LD_REST_Quizzes_Controller_V2::init_quiz_edit () |
Initialize the ProQuiz Quiz being edited. |
includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-course-post-meta.php: Learndash_Admin_Data_Upgrades_Course_Post_Meta::process_post_meta_items () |
Process Post Meta items. |
includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-group-post-meta.php: Learndash_Admin_Data_Upgrades_Group_Post_Meta::process_post_meta_items () |
Process Post Meta items. |
includes/admin/classes-data-upgrades-actions/class-learndash-admin-data-upgrades-quiz-post-meta.php: Learndash_Admin_Data_Upgrades_Quiz_Post_Meta::process_post_meta_items () |
Process Post Meta items. |
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-course-steps.php: LDLMS_Course_Steps::load_steps_objects () |
Load the Steps Objects. |
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-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 () |
Get Quiz Repeats |
includes/ld-certificates.php: learndash_certificate_display () |
Display the PDF Certificate. |
src/deprecated/LearnDash_PayPal_IPN.php: LearnDash_PayPal_IPN::ipn_process_post_data () |
Process the IPN POST data. |
includes/course/ld-course-progress.php: learndash_can_complete_step () |
Check if the user can complete the current step. |
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/admin/classes-posts-listings/class-learndash-admin-users-listing.php: Learndash_Admin_Users_Listing::listing_filter_by_user_course () |
Filter the main query listing by the course_id |
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/shortcodes/ld_groupinfo.php: learndash_groupinfo_shortcode () |
Builds the |
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_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 successful 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 an assignment uploading process after the file was loaded. |
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-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 () |
Initialize quiz edit. |
includes/settings/settings-metaboxes/class-ld-settings-metabox-course-users.php: LearnDash_Settings_Metabox_Course_Users_Settings::show_settings_metabox_fields () |
Show Settings Section Fields. |
includes/settings/settings-metaboxes/class-ld-settings-metabox-quiz-progress-settings.php: LearnDash_Settings_Metabox_Quiz_Progress_Settings::load_settings_values () |
Initialize the metabox settings values. |
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/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/rest-api/v1/class-ld-rest-posts-controller.php: LD_REST_Posts_Controller_V1::ld_get_field_value () |
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 quizzes 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 quizzes if not auto saving, post id is set, and the current user has permissions to add or edit quizzes. If there is an available template to load, WordPress redirects to the proper URL. |
includes/shortcodes/ld_courseinfo.php: learndash_courseinfo () |
Builds the |
includes/shortcodes/ld_quizinfo.php: learndash_quizinfo () |
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_FrontQuiz.php: WpProQuiz_View_FrontQuiz::show () | |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_FrontQuiz.php: WpProQuiz_View_FrontQuiz::script () | |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_FrontQuiz.php: WpProQuiz_View_FrontQuiz::max_question_script () | |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_QuizOverall.php: WpProQuiz_View_QuizOverall::show () | |
includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_Export.php: WpProQuiz_Helper_Export::getQuizMaster () | |
includes/lib/wp-pro-quiz/lib/helper/WpProQuiz_Helper_ExportXml.php: WpProQuiz_Helper_ExportXml::export () | |
includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Front.php: WpProQuiz_Controller_Front::ajaxQuizLoadData () | |
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-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-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_is_quiz_notcomplete () |
Checks whether a quiz is not completed for a user. |
includes/course/ld-course-progress.php: learndash_mark_complete () |
Outputs the HTML output to mark a course complete. |
includes/deprecated/4.11.0/functions.php: learndash_get_next_lesson_redirect () |
Redirects the user to the next lesson. |
includes/classes/class-ldlms-model-quiz-questions.php: LDLMS_Quiz_Questions::init () |
Initialize 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 () |
Get Quiz base URL |
includes/admin/classes-posts-listings/class-learndash-admin-quizzes-listing.php: Learndash_Admin_Quizzes_Listing::post_row_actions () |
Add Quiz Builder link to Quizzes 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 () |
Get course access list for Course |
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. |