I apologize in advance for any possible errors in formatting, this is my first issue :)
To be clear: i have already check your developer branch, and it contain same error.
I have found a bug, when i try get courses per user with REST API, there is no "content" attribute. I have found 2 errors in your code (it's just a hot fix, i hope you can find a better way to fix it ) :
False name tabs and content array in file /inc/jwt/rest-api/version1/class-lp-rest-users-v1-controller.php
Function _learn_press_get_user_profiletabs return follow tabs: ['my-courses', 'quizzes', 'orders', 'order-details', 'settings', 'logout', ] . But there is array $content in function _get_lp_datatabs that is then distributed to the tabs. Also missing attribute in function _get_course_tabcontents instead $request to get profile should be $user (or $user->ID)
So fixed function _get_lp_datatabs should be like this:
P.S.: I changed $request['id'] to $user->ID because $user->ID work with every request (all users or specific user), instead of $request['id'] with work only with specific users.
P.S.S: Also quizzes i can not became, when i try to get all users, but when i try to get specific user i see all quizzes
I apologize in advance for any possible errors in formatting, this is my first issue :) To be clear: i have already check your developer branch, and it contain same error.
I have found a bug, when i try get courses per user with REST API, there is no "content" attribute. I have found 2 errors in your code (it's just a hot fix, i hope you can find a better way to fix it ) :
False name tabs and content array in file /inc/jwt/rest-api/version1/class-lp-rest-users-v1-controller.php Function _learn_press_get_user_profiletabs return follow tabs:
['my-courses', 'quizzes', 'orders', 'order-details', 'settings', 'logout', ]
. But there is array$content
in function _get_lp_datatabs that is then distributed to the tabs. Also missing attribute in function _get_course_tabcontents instead$request
to get profile should be$user
(or$user->ID
) So fixed function _get_lp_datatabs should be like this:Also change _get_course_tabcontents function in follow way:
I hope it will be helpful!
P.S.: I changed $request['id'] to $user->ID because $user->ID work with every request (all users or specific user), instead of $request['id'] with work only with specific users. P.S.S: Also quizzes i can not became, when i try to get all users, but when i try to get specific user i see all quizzes