Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi ammonify2025,

    Thank you for reaching out.

    Currently, we don’t have an Orders API developed within LearnPress.

    If you have any other questions or requests, please don’t hesitate to ask.

    Best regards,
    Brianvu-tp

    Thread Starter ammonify2025

    (@ammonify2025)

    I want the data in orders,
    how can I do for fetch the orders data with API?

    Plugin Support brianvu-tp

    (@briantp)

    Hi ammonify2025,

    Thank you for your follow-up question.

    Currently, LearnPress doesn’t have a dedicated Orders API for fetching order data directly. However, you can retrieve a user’s order list using the /wp-json/learnpress/v1/users/ API endpoint with the order parameter.

    For detailed implementation, you can refer to the get_lp_data_tabs function located in the wp-content/plugins/learnpress/inc/jwt/rest-api/version1/class-lp-rest-users-v1-controller.php file. This function provides the logic for retrieving user order information.

    Please let me know if you have any further questions or require additional assistance.

    Best regards,
    Brianvu-tp

    Thread Starter ammonify2025

    (@ammonify2025)

    Thank you for your information, I will try it out to get the way you suggest.

    Plugin Support brianvu-tp

    (@briantp)

    Hi ammonify2025,

    We’re glad we could help.

    Please let us know if you have any further questions or run into any issues while trying this out.

    Best regards,
    Brianvu-tp

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.