Hi everyone, here we are (again) to shout out our new updated version LearnPress v4.2.2 with some modifications. Let’s get it going!
LearnPress v4.2.2 Update Detail
Modified: Delete the “learn_press_get_current_url” function, and replace it with the “LP_Helper::getUrlCurrent” method.
Modified: Delete the “learn_press_get_the_course” function, and replace it with the “learn_press_get_course” function.
Modified: Temporary comment _get_theme_info, plugin info, because very low.Comment: hook learn_press_lesson_comment_form_fields, learn_press_get_only_content_permalink, and learn_press_lesson_before_delete_post.
Optimize: Boost up LearnPress performance.
Optimize: Rewrite the “add_rewrite_rules” method, only call on the “admin_init” hook.
Optimize: Allow flush_rewrite_rules only when saving settings.
Optimize: Not call get_available_payment_gateways on the hook ‘wp_loaded’.
Optimize: Not call learn_press_get_current_profile_tab on hook ‘init’.
Optimize: Add the thim_cache table for cache (apply for site not install plugin Object Cache – or cache not working).
Optimize: Set/get/clear cache for count total students enrolled.
Optimize: Set/get/clear cache user_course (user_items) data.
Optimize: Only load class REST when calling on the URL of API.
Optimize: Modify set cookie session for user Guest(user not logged in).
Added: A slash to the end of the course item link.
Fixed: Some functions make out of memory.
Fixed: Some functions use static that is not correct, leading to memory running out.
For more information about LearnPress v4.2.2, please take a look at LearnPress and LearnPress add-ons.
ThimPress Development Team