LearnDash
Recent Updates
Fixes
- Resolved an issue where the close button on Course Reviews notices did nothing when clicked and took on the theme's button style.
Security
- Tightened security around Course Grid template loading.
- Tightened security around Course Reviews submissions.
- Tightened security around PayPal Checkout free trials.
- Tightened security around PayPal Checkout payments.
- Tightened security around PayPal Standard payment notifications.
- Tightened security around quiz imports and exports.
- Tightened security around quiz submissions.
Tweaks
- Applied the WordPress comment moderation settings to Course Reviews, showing a review held for moderation to its author with an awaiting moderation message and notifying the moderators.
- Added functions:
learndash_get_user_essay_for_question. - Updated templates:
includes/course-reviews/src/views/review-list.php,includes/course-reviews/src/views/star-rating.php.
Security
- Tightened security around course report exports.
Fixes
- Corrected the spacing in a legacy certificate PDF when the line height is set on a span, heading, div, CSS class or style rule, or in pt, em, % or plain number values, so the text sits where it did before the move to mPDF and no longer leaves a blank first page.
- Prevented a lesson, topic or quiz that was deleted permanently from staying in the steps of its courses when Shared Course Steps was enabled.
- Resolved an issue where a certificate with an absolute line height on a paragraph, such as an empty spacer paragraph, rendered on extra pages in the PDF.
- Resolved an issue where a user's quiz statistics could fail to load due to a division by zero error.
- Resolved an issue where questions and answers imported from a quiz XML file were saved with 0 points.
- Resolved an issue where quiz attempts were saved as passed when the quiz passing percentage setting was missing.
- Resolved an issue where the
LEARNDASH_WHODAT_SERVER_URLconstant was not respected by PayPal Checkout.
Security
- Tightened security around Group Leader access to Group Administration users, quiz attempts and quiz statistics.
Tweaks
- Improved PayPal Checkout onboarding compatibility with Redis and other persistent object caches.
- Removed the deprecated
statisticLoadOverviewandstatisticLoadFormOverviewquiz statistics AJAX actions, which the statistics page no longer uses. - Added filters:
learndash_model_quiz_default_passing_percentage.
Fixes
- Applied the package member count of variable products to groups created from orders on WooCommerce 10 and later, so each group receives the configured number of members for every unit purchased.
- Corrected a JavaScript error on variable product pages that stopped the group name field and the sticky footer from loading.
- Corrected order completion for group products with "Ask the Group Leader to pay for access to Courses" enabled, which removed the Group Leader's access to courses they had purchased individually or were enrolled in before the order.
- Removed the whitespace around the nonce on the group report's quiz statistics link. The whitespace made the nonce invalid, so the statistics popup stayed on Loading for group leaders.
- Repaired the group status changes for WooCommerce subscriptions on WooCommerce 10 and later, so a group is set to draft when its subscription is put on hold and published again when the subscription is reactivated.
Fixes
- Resolved an issue where Media Protection served unprotected images and files through the masked download URL instead of loading them directly from the uploads folder.
- Resolved an issue where renewing an expired or canceled one-time Stripe membership charged the member without extending the membership.
Tweaks
- Added transaction log entries for Stripe payments that could not be applied to an invoice and for Stripe API errors during webhooks.
- Updated Stripe one-time payments to save the Stripe payment ID on the invoice.
- Updated the Stripe settings to show when the last Stripe webhook was received.
- Added filters:
memberdash_rule_media_model_is_protected_attachment. - Updated filters:
memberdash_gateway_stripe_metadata.
Features
- Added a new drag-and-drop certificate builder.
- Added a public certificate verification page that shows whether a certificate is authentic.
- Added a warning in the Media Library before an image a certificate uses is deleted.
- Added links to each certificate's verification page on the learner's profile and on course, quiz and group pages.
- Merged Certificate Builder addon feature into LearnDash core.
Fixes
- Resolved an issue where completing a course again after its progress was deleted did not run the course completion actions when the whole course was completed at once.
- Resolved an issue where downloading a group certificate also ran the access-denied handling and printed its message after the PDF.
Tweaks
- Added a Certificates log under LearnDash > Settings > Logs.
- Added an admin notice when the site runs a WordPress version below the one LearnDash requires.
- Added REST API endpoints to get, save and delete a certificate template.
- Deleted a user's certificate credentials when their course data is permanently deleted.
- Deprecated the bundled TCPDF library, which LearnDash no longer uses and which will be removed in a future release.
- Set minimum required WP version to 6.9.
- Stopped calling purchase invoice hook callbacks that take a TCPDF instance, since mPDF has no equivalent to pass them; single-argument callbacks on the invoice creator, author, title, subject and keywords filters carried over to their replacements, and the deprecation notice names anything dropped. If you've customized the
learndash_purchase_invoice_*actions and filters deprecated in this version, you will need to switch to the new versions for it to work correctly. - Switched legacy certificate PDF generation from the bundled TCPDF library to mPDF, which renders the Cyrillic, Greek and Hebrew text TCPDF drew as question marks, made every certificate render the way the default legacy mode did, and stopped calling certificate hook callbacks that take a TCPDF instance, since mPDF has no equivalent to pass them; single-argument callbacks on the certificate creator, author, title, subject and keywords filters carried over to their replacements. If you've customized the certificate actions and filters deprecated in this version, you will need to switch to the new versions for it to work correctly.
- Switched purchase invoice PDF generation from the bundled TCPDF library to mPDF, and made an invoice font that is not installed fall back to FreeSans instead of stopping the invoice from generating.
- Added actions:
learndash_certificate_generate,learndash_certificate_mpdf_created,learndash_certificate_mpdf_write_after,learndash_certificate_mpdf_write_before,learndash_certificate_v3_mpdf_created,learndash_certificate_v3_mpdf_write_after,learndash_certificate_v3_mpdf_write_before,learndash_delete_all_data_after,learndash_purchase_invoice_mpdf_created,learndash_purchase_invoice_mpdf_write_after,learndash_purchase_invoice_mpdf_write_before,learndash_user_course_progress_delete_before. - Added constants:
LEARNDASH_CERTIFICATE_DEFAULT_ENGINE. - Added filters:
learndash_certificate_background,learndash_certificate_builder_v3_enabled,learndash_certificate_builder_v3_starting_template_default,learndash_certificate_builder_v3_starting_template_gallery_enabled,learndash_certificate_default_engine,learndash_certificate_document_author,learndash_certificate_document_creator,learndash_certificate_document_keywords,learndash_certificate_document_subject,learndash_certificate_document_title,learndash_certificate_mpdf_config,learndash_certificate_notice_message,learndash_certificate_stylesheet,learndash_certificate_v3_custom_tokens,learndash_certificate_v3_mpdf_config,learndash_certificate_v3_pdf_filename,learndash_certificate_v3_token_values,learndash_model_quiz_default_certificate_threshold,learndash_purchase_invoice_document_author,learndash_purchase_invoice_document_creator,learndash_purchase_invoice_document_font_size,learndash_purchase_invoice_document_font,learndash_purchase_invoice_document_keywords,learndash_purchase_invoice_document_subject,learndash_purchase_invoice_document_title,learndash_purchase_invoice_logo_html,learndash_purchase_invoice_logo_placement,learndash_purchase_invoice_mpdf_config,learndash_purchase_invoice_stylesheet. - Updated templates:
themes/ld30/templates/course.php,themes/ld30/templates/group.php,themes/ld30/templates/modern/components/alerts/alert/content/message.php,themes/ld30/templates/shortcodes/profile/course-row.php,themes/ld30/templates/shortcodes/profile/quiz-row.php.
Deprecates
- Deprecated actions:
learndash_certification_after,learndash_certification_content_write_cell_after,learndash_certification_content_write_cell_before,learndash_certification_created,learndash_certification_thumbnail_after,learndash_certification_thumbnail_before,learndash_certification_thumbnail_processing_end,learndash_certification_thumbnail_processing_start,learndash_purchase_invoice_after,learndash_purchase_invoice_content_write_cell_after,learndash_purchase_invoice_content_write_cell_before,learndash_purchase_invoice_created,learndash_purchase_invoice_thumbnail_after,learndash_purchase_invoice_thumbnail_before,learndash_purchase_invoice_thumbnail_processing_end,learndash_purchase_invoice_thumbnail_processing_start,learndash_tcpdf_init. - Deprecated constants:
LEARNDASH_TCPDF_LEGACY_LD322. - Deprecated filters:
learndash_certificate_params,learndash_certification_content_write_cell_args,learndash_pdf_author,learndash_pdf_creator,learndash_pdf_keywords,learndash_pdf_subject,learndash_pdf_title,learndash_purchase_invoice_content_write_cell_args,learndash_purchase_invoice_font_size,learndash_purchase_invoice_font,learndash_purchase_invoice_logo_params,learndash_purchase_invoice_params,learndash_purchase_invoice_pdf_author,learndash_purchase_invoice_pdf_creator,learndash_purchase_invoice_pdf_keywords,learndash_purchase_invoice_pdf_subject,learndash_purchase_invoice_pdf_title,learndash_tcpdf_legacy_ld322.
Fixes
- Improved required WordPress and PHP version checks on the unified licensing page.
- Resolved an issue where legacy licenses were shown as inactive and admin pages loaded slowly if the legacy LearnDash licensing server could not be reached.
- Resolved an issue where logged-out users could not take a quiz with prerequisites in an open course due to a server error.
- Resolved an issue where the Legacy License settings tab redirected customers with only a legacy license to the Unified License Manager.
Fixes
- Resolved an issue where LearnDash showed a license activation failed notice for some license keys.
Tweaks
- Updated functions:
learndash_get_license_key,learndash_get_license_email,learndash_is_learndash_license_valid.
Fixes
- Resolved an issue where frontend pages logged a PHP notice about the unregistered wp-color-picker script.
- Resolved an issue where the Instructor recipient and instructor access to Notifications were missing after Notifications was bundled into LearnDash core.
Tweaks
- Added a dismissible announcement banner to plugin admin pages.
- Improved the unified licensing page experience.
- Updated functions:
learndash_is_learndash_license_valid,learndash_is_license_hub_valid.