learndash_template_url_from_path()
Function: Utility function to accept a file path and swap it out for a URL.
learndash_template_url_from_path Read More »
@package: LearnDash / Misc
Source Files: includes/ld-misc-functions.php
Function: Utility function to accept a file path and swap it out for a URL.
learndash_template_url_from_path Read More »
Function: Saves the course, lesson, topic, and quiz settings meta to separate post meta.
learndash_convert_settings_to_single Read More »
Filter Hook: Filters course points format round decimal value.
learndash_course_points_format_round Read More »
Function: Saves the course, lesson, topic, and quiz settings meta to separate post meta if not already converted.
learndash_check_convert_settings_to_single Read More »
Function: Updates the metadata settings array when updating single setting.
learndash_update_post_meta Read More »
Function: Gets the MySQL privileges for the DB_USER defined in the wp-config.
learndash_get_db_user_grants Read More »
Function: Removes a directory from the given path recursively.
learndash_recursive_rmdir Read More »
Function: Utility function to parse and validate whether the assignment upload extensions are allowed.
learndash_validate_extensions Read More »
Function: Utility function to traverse the multidimensional array and apply user function.
Function: Formats course points to the specified decimal value.
learndash_format_course_points Read More »
Function: Prints the given string in preformated text.
Filter Hook: Filters whether a post type has archive or not.
learndash_post_type_has_archive Read More »
Filter Hook: Filters the status of comments in the focus mode.
learndash_focus_mode_comments Read More »
Filter Hook: Filters LearnDash date and time format.
learndash_date_time_formats Read More »
Function: Helper function for PHP output buffering.
learndash_ob_get_clean Read More »
Function: Redirects to the home page if the user lands on archive pages for lesson or quiz post types.
ld_remove_lessons_and_quizzes_page Read More »
Function: Checks if a LearnDash post type has archive support or not.
learndash_post_type_has_archive Read More »
Function: Removes all comments for learndash post types.
learndash_remove_comments Read More »
Function: Ensures the comments are open for assignments.
learndash_comments_open Read More »
Function: Log debug messages to file.