4.20.5

2025-03-10 Fix2 Performance4 Tweak2

Fixes

  • Fixed activity widget not showing activity for cases when a user gets enrolled in a course.
  • Fixed activity widget not respecting the statuses set in the filter.

Performance

  • Optimized the performance of activity data queries made via the learndash_reports_get_activity() function, especially for sites with many posts and users when their activity meta is fetched.
  • Optimized activity widget by not querying additional activity meta that it doesn't use.
  • Optimized the progress chart widget by lowering memory consumption and improving its performance on large sites.
  • Optimized functions: learndash_reports_get_activity.

Tweaks

  • Updated functions: learndash_reports_get_activity.
  • Added filters: learndash_user_activity_meta_query_joins, learndash_user_activity_meta_query_where, learndash_user_activity_query_group_by, learndash_user_activity_results.