ThimPressThimPress ThimPress
  • Home
  • Best Deals
    • Eduma – Education WordPress Theme – $439 $69 Only!
    • Eduma Mobile – React Native LMS Mobile App for iOS & Android – $149 $54 Only!
    • Storepify – Minimal Multipurpose Shopify Theme – $89 $29 Only!
    • Sailing | Hotel WordPress Theme – $54 Only!
    • LuxStay – Hotel & BnB WordPress Theme – $54 Only!
    • Coaching – Life And Business Coach WordPress Theme – $54 Only!
    • Course Builder – Online Course WordPress Theme – $49 Only!!
    • StarKid – Kindergarten WordPress Theme – $44 Only!
    • IvyPrep – Education & School WordPress Theme – $44 Only!
  • LearnPress
    • LearnPress – LMS WordPress Plugin
    • LearnPress Add-Ons
    • LearnPress PRO Bundle
    • LearnPress Store
    • Eduma Mobile App
    • LearnPress Mobile App
  • Plugins
    • All
    • LearnPress Add-Ons
    • Create Courses Add-Ons
    • Manage Courses Add-Ons
    • Sell Courses Add-Ons

    Plugins33

    LearnPress Pro Bundle (690x460)
    LearnPress PRO Bundle
    LearnPress Semi-Pro Bundle (690x460)
    LearnPress Semi-Pro Bundle
    WooCommerce add on for LearnPress 690x460px
    WooCommerce Add-On for LearnPress
    live course
    Live Course Add-On for LearnPress

    LearnPress Add-Ons33

    LearnPress Pro Bundle (690x460)
    LearnPress PRO Bundle
    LearnPress Semi-Pro Bundle (690x460)
    LearnPress Semi-Pro Bundle
    WooCommerce add on for LearnPress 690x460px
    WooCommerce Add-On for LearnPress
    live course
    Live Course Add-On for LearnPress

    Create Courses Add-Ons7

    Paid Memberships Pro 690x460px 1
    Paid Memberships Pro Add-On for LearnPress
    Frontend Editor 690x460px
    Frontend Editor Add-On for LearnPress
    Assignments 690x460px
    Assignments Add-On for LearnPress
    Random Quiz 690x460px
    Random Quiz Add-On for LearnPress

    Manage Courses Add-Ons17

    live course
    Live Course Add-On for LearnPress
    Certificates 690x460px
    Certificates Add-On for LearnPress
    Gradebook 690x460px
    Gradebook Add-On for LearnPress
    WPML addon 690x460
    WPML Add-On for LearnPress

    Sell Courses Add-Ons7

    WooCommerce add on for LearnPress 690x460px
    WooCommerce Add-On for LearnPress
    Paid Memberships Pro 690x460px 1
    Paid Memberships Pro Add-On for LearnPress
    Stripe add on for LearnPress 690x460px
    Stripe Add-On for LearnPress
    2Checkout add on for LearnPress 690x460px
    2Checkout Add-On for LearnPress
  • Themes
    • All
    • Education Themes
    • Shopify Themes
    • Hotel Themes
    • WordPress Blog & Magazine Themes
    • Free

    Themes14

    Eduma - Premium LMS WordPress Theme
    Eduma | LMS WordPress Theme
    Coaching | Life and Business Coach WordPress Theme
    Coaching | Life & Business Coach WordPress Theme
    course builder
    CorpTrain | Corporate Training WordPress Theme
    onelms education wordpress theme
    OneLMS – Education WordPress Theme

    Education Themes7

    Eduma - Premium LMS WordPress Theme
    Eduma | LMS WordPress Theme
    Coaching | Life and Business Coach WordPress Theme
    Coaching | Life & Business Coach WordPress Theme
    course builder
    CorpTrain | Corporate Training WordPress Theme
    onelms education wordpress theme
    OneLMS – Education WordPress Theme

    Shopify Themes1

    Storepify - Minimal Multipurpose Shopify Theme
    Storepify – Minimal Multipurpose Shopify Theme

    Hotel Themes3

    Sailing Hotel WordPress Theme
    Sailing | Hotel WordPress Theme
    hotel
    LuxStay | Hotel & BnB WordPress Theme
    luxhotel hotel & bnb wordpress theme
    LuxHotel – Hotel WordPress Theme

    WordPress Blog & Magazine Themes3

    megabuilder
    MegaBux | Construction WordPress Theme
    magwp
    Magie | Magazine WordPress Theme
    magazette travel
    Magazette | News & Magazine WordPress Theme

    Free1

    education pack
    Education Pack: #1 Free Education WordPress Theme
  • Blog
    • WordPress Theme Collections
    • WordPress Plugin Collections
    • Shopify
    • Education & LMS
    • Marketing & SEO
    • Tutorials & Docs
  • Our Services
    • Customization
    • Maintenance Service
    • Hosting Service
    • Advertise
  • Help Center
    • Support Forums
    • Ticket Center
    • Documentation
    • Knowledge Base
    • FAQs
    • Contact us
  • 0
  • Sign in

    Sign In

    Lost your password?

    Not a member yet? Sign up now

    Lost Password

    Please enter your username or email address. You will receive a link to create a new password via email.

    Are you a member? Sign in now

Back
  • Home
  • Best Deals
    • Eduma – Education WordPress Theme – $439 $69 Only!
    • Eduma Mobile – React Native LMS Mobile App for iOS & Android – $149 $54 Only!
    • Storepify – Minimal Multipurpose Shopify Theme – $89 $29 Only!
    • Sailing | Hotel WordPress Theme – $54 Only!
    • LuxStay – Hotel & BnB WordPress Theme – $54 Only!
    • Coaching – Life And Business Coach WordPress Theme – $54 Only!
    • Course Builder – Online Course WordPress Theme – $49 Only!!
    • StarKid – Kindergarten WordPress Theme – $44 Only!
    • IvyPrep – Education & School WordPress Theme – $44 Only!
  • LearnPress
    • LearnPress – LMS WordPress Plugin
    • LearnPress Add-Ons
    • LearnPress PRO Bundle
    • LearnPress Store
    • Eduma Mobile App
    • LearnPress Mobile App
  • Plugins
    • All
    • LearnPress Add-Ons
    • Create Courses Add-Ons
    • Manage Courses Add-Ons
    • Sell Courses Add-Ons

    Plugins33

    LearnPress Pro Bundle (690x460)
    LearnPress PRO Bundle
    LearnPress Semi-Pro Bundle (690x460)
    LearnPress Semi-Pro Bundle
    WooCommerce add on for LearnPress 690x460px
    WooCommerce Add-On for LearnPress
    live course
    Live Course Add-On for LearnPress

    LearnPress Add-Ons33

    LearnPress Pro Bundle (690x460)
    LearnPress PRO Bundle
    LearnPress Semi-Pro Bundle (690x460)
    LearnPress Semi-Pro Bundle
    WooCommerce add on for LearnPress 690x460px
    WooCommerce Add-On for LearnPress
    live course
    Live Course Add-On for LearnPress

    Create Courses Add-Ons7

    Paid Memberships Pro 690x460px 1
    Paid Memberships Pro Add-On for LearnPress
    Frontend Editor 690x460px
    Frontend Editor Add-On for LearnPress
    Assignments 690x460px
    Assignments Add-On for LearnPress
    Random Quiz 690x460px
    Random Quiz Add-On for LearnPress

    Manage Courses Add-Ons17

    live course
    Live Course Add-On for LearnPress
    Certificates 690x460px
    Certificates Add-On for LearnPress
    Gradebook 690x460px
    Gradebook Add-On for LearnPress
    WPML addon 690x460
    WPML Add-On for LearnPress

    Sell Courses Add-Ons7

    WooCommerce add on for LearnPress 690x460px
    WooCommerce Add-On for LearnPress
    Paid Memberships Pro 690x460px 1
    Paid Memberships Pro Add-On for LearnPress
    Stripe add on for LearnPress 690x460px
    Stripe Add-On for LearnPress
    2Checkout add on for LearnPress 690x460px
    2Checkout Add-On for LearnPress
  • Themes
    • All
    • Education Themes
    • Shopify Themes
    • Hotel Themes
    • WordPress Blog & Magazine Themes
    • Free

    Themes14

    Eduma - Premium LMS WordPress Theme
    Eduma | LMS WordPress Theme
    Coaching | Life and Business Coach WordPress Theme
    Coaching | Life & Business Coach WordPress Theme
    course builder
    CorpTrain | Corporate Training WordPress Theme
    onelms education wordpress theme
    OneLMS – Education WordPress Theme

    Education Themes7

    Eduma - Premium LMS WordPress Theme
    Eduma | LMS WordPress Theme
    Coaching | Life and Business Coach WordPress Theme
    Coaching | Life & Business Coach WordPress Theme
    course builder
    CorpTrain | Corporate Training WordPress Theme
    onelms education wordpress theme
    OneLMS – Education WordPress Theme

    Shopify Themes1

    Storepify - Minimal Multipurpose Shopify Theme
    Storepify – Minimal Multipurpose Shopify Theme

    Hotel Themes3

    Sailing Hotel WordPress Theme
    Sailing | Hotel WordPress Theme
    hotel
    LuxStay | Hotel & BnB WordPress Theme
    luxhotel hotel & bnb wordpress theme
    LuxHotel – Hotel WordPress Theme

    WordPress Blog & Magazine Themes3

    megabuilder
    MegaBux | Construction WordPress Theme
    magwp
    Magie | Magazine WordPress Theme
    magazette travel
    Magazette | News & Magazine WordPress Theme

    Free1

    education pack
    Education Pack: #1 Free Education WordPress Theme
  • Blog
    • WordPress Theme Collections
    • WordPress Plugin Collections
    • Shopify
    • Education & LMS
    • Marketing & SEO
    • Tutorials & Docs
  • Our Services
    • Customization
    • Maintenance Service
    • Hosting Service
    • Advertise
  • Help Center
    • Support Forums
    • Ticket Center
    • Documentation
    • Knowledge Base
    • FAQs
    • Contact us
  • Home
  • Tutorials & Updates

LearnPress v4.2.0 Update

Article In Tutorials & UpdatesBy Duke - December 21, 2022

Hello everyone, this is the first update for LearnPress v4.2.0. Here, this update will mainly focus on PHP v8.1 compatibility and code system, alongside some functions. Let’s go!

LearnPress v4.2.0 Update Detail

Added: ‘LP_Question_Cache’, LP_Session_Filter class.

Commented: ‘learn_press_mark_user_just_logged_in’ function.

Commented: ‘set_cookie’ method on class LP_Request.

Fixed: compatibility with WordPress PHP 8.1.

Not implementing ArrayAccess, Iterator, and Countable of PHP on classes: LP_Datetime, LP_Session_Handler, LP_User_Item_Course, LP_User_Item, LP_Quiz_Results, LP_Course_Item, LP_Quiz, LP_Array_Access, and LP_Profile_Tabs.

Except for class LP_Query_List_Table, we still keep implementing ArrayAccess (You will notice the warning but don’t worry, you only need to disable WP_DEBUG mode), because add-ons: LearnPress-H5P (version 4.0.1 and lower) and LearnPress-Assignment (version 4.0.7 and lower) require it. Therefore, you need to update to the higher version of these plugins to make sure.

Fixed: shortcode [learn_press_checkout] working right.

Fixed: security injects SQL (CVE-2022-45820).

Fixed: XSS security.

Fixed: styles Backend, Frontend.

Fixed: Search course in term with Polylang.

Fixed: The error of JSON syntax API search courses and curriculum.

Deprecated: get_time_remaining, get_time of the class LP_User_Item, get_finishing_type of the class LP_User_Item_Course.

Deprecated: get_course_remaining_time on the class LP_Abstract_User.

Deprecated: ‘learn_press_course_question_permalink_friendly’ function.

Deprecated: ‘learn_press_add_order’ function.

Deprecated: learn_press_generate_transaction_object function.

Deprecated: ‘LP_Request_Handler’ class, your need to update add-ons Course Review (version 4.0.4 or higher), and Wishlist (version 4.0.4 or higher).

Deprecated: method ‘get_cart_for_session’ on class LP_Cart.

Deprecated: ‘offsetExists’, ‘offsetGet’, ‘get_current_question’, ‘get_question_position’, ‘check_question’, ‘get_question_link’ methods LP_Quiz class.

Deprecated: ‘instructions’ method on ‘LP_Gateway_Offline_Payment’ class.

Modified: LP_Datetime, deprecated method: toLocal, toRFC822, toUnix, setGMT, getSqlNullDate, addDuration, getPeriod.

Modified: get_expiration_time, deprecated param $format (17502a0).

Modified: class LP_Question_True_Or_False, LP_Question_Single_Choice, LP_Question_Multi_Choice, LP_Question_Fill_In_Blanks (3af1d1c).

Modified: class LP_Question, deprecated method: _get_default_answers, _filter_meta_box_meta, update_answer_orders (3af1d1c)

Modified: method ‘get_answers’ of class LP_Question (3af1d1c)

Not storing key ‘order_awaiting_payment’ in session, you need to update the LearnPress-Certificate add-on to v4.0.4 or higher.

Modified: ‘learn_press_clear_cart_after_payment’ on hook ‘get_header’.

Modified: ‘learn_press_custom_checkout_cart’ on hook ‘learn_press_checkout_cart’.

Modified: LP_Shortcode_Checkout class.

Modified: ‘learn_press_set_user_cookie_for_guest’ function on hook ‘wp’.

Modified: ‘LP_Session_Handler’ class (c12c4b54).

Modified: ‘save_data’ method of class LP_Session_Handler (c12c4b5).

Modified: ‘get_cart_from_session’, ‘get_session_data’, ‘save_data’ methods on class LP_Session_Handler.

Change the name ‘get_session’ method to ‘get_session_by_customer_id’.

Modified: ‘update_session_timestamp’, ‘delete_session’ methods on class LP_Session_Handler.

Modified: ‘LP_Cart’, optimize how to set session for cart, get cart items when called, instance of set on hook ‘wp_loaded’ always call, not call ‘set_cart_cookies’ when ‘add_to_cart’ method called.

Modified: ‘calculate_totals’ on class LP_Cart.

Modified: ‘LP_Profile_Tabs’ class.

Replace all access via array to fields and methods of classes LP_Query_List_Table, LP_Profile, and LP_Profile_Tab.

Modified: ‘create_order’ method on the class ‘LP_Checkout’.

Modified: Method “list_courses” changes how to call the template.

Modified: The statistic of LP Order.

Optimized: handle the session.

Only set the cookie when the user does not log in.

When a user login is successful, the previous session of the guest user is deleted.

When a user logs out, expired sessions are deleted.

Moved: The settings permalink Profile to tab Permalinks.

Checked: The price is valid.

Checked: MathJax.Hub undefined.

Remove: Remove the save lesson preview on the list of lessons on the Backend.

Remove: sortable between multiple sections.

That should be all for this update of the LearnPress v4.2.0 version. For more information, you can visit LearnPress or LearnPress Add-ons.

ThimPress Development Team


Contact us, ThimPress: 

Website: https://thimpress.com/

Fanpage: https://www.facebook.com/ThimPress

Youtube: https://www.youtube.com/c/ThimPressDesign

Twitter: https://twitter.com/thimpress

TAGS: learnpresslearnpress add-onslms plugin

Related Articles

best learnpress wordpress theme collection

Best LearnPress WordPress Theme Collection for 2023

automating classroom with learnpress and uncanny automator

Automating Classroom with LearnPress and Uncanny Automator

the best personal trainer wordpress theme 2023: list of top 5

The Best Personal Trainer WordPress Theme 2023: List Of Top 5

$69
Education WordPress Theme | Eduma

Live DemoBuy Theme

$54
Coaching | Coaching WordPress Theme

Live DemoBuy Theme

$49
CorpTrain | Corporate Training WordPress Theme

Live DemoBuy Theme

$54
Hotel WordPress Theme | Sailing

Live DemoBuy Theme

$54
Hotel & BnB WordPress Theme | LuxStay

Live DemoBuy Theme

$44
Charitix | Nonprofit Charity WordPress Theme

Live DemoBuy Theme

$44
IvyPrep | Education & School WordPress Theme

Live DemoBuy Theme

$44
Restaurant WordPress Theme - Resca

Live DemoBuy Theme

ADD-ONS FOR LEARNPRESS

  • Combo LearnPress Pro Bundle (690x460)Read more

    LearnPress PRO Bundle

    $610 $299

    The next level of LearnPress - LMS WordPress Plugin. More Powerful, Flexible and Magical Inside.

  • Combo LearnPress Semi-Pro Bundle (690x460)Read more

    LearnPress Semi-Pro Bundle

    $210 $149

    5 Most Powerful as well as Most Wanted Premium LearnPress Add-ons. Compact but Fabulous.

  • Add to cart

    WooCommerce Add-On for LearnPress

    $49

    Easy to connect WooCommerce to your LMS website, easy to sell your courses online with no obstacle.

  • Add to cart

    Live Course Add-On for LearnPress

    $19

    Create courses and live video meetings using Zoom or Google Meet Use shortcode to show the meeting content.

  • Add to cart

    Certificates Add-On for LearnPress

    $39

    Add Drag & Drop certificates builder as well as select designed certificates templates for each LMS course.

  • Add to cart

    Gradebook Add-On for LearnPress

    $39

    Track process and result of students in each LMS course. Allow to export the gradebook to CSV.

thimpress logo

We are a company that is passionate about developing products to help you build your business online. Our very first priority is to guarantee our customers’ experience and satisfaction.

"ThimPress" is a brand of "PhysCode LLC".
Address: 14936 DILLOW ST, #V301, Westminster, CA 92683.
Email: [email protected]


COMPANY

  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Item Support Policy

AFFILIATE

  • Become an Affiliate
  • Affiliate Terms & Policies

SUPPORT

  • Documentation
  • Forum
  • How to get help

PRODUCT

  • WordPress Plugins
  • WordPress Themes
  • Shopify Themes
  • Advertise
  • Partner

FIND US ON

  • Facebook
  • Twitter
  • Envato
  • Youtube
Designed by ThimPress. Powered by WordPress.
DMCA.com Protection Status
  • Terms & Conditions
  • Documentation