Well actually the widgets are being rendered via api calls .We make hit to our api call to fetch the html of it and run scripts in this html data.
Now the issue with api calls is that they do not recognize wordpress session .
So you wont get wp_current_user or get_current_user_id() anything from wordpress.We are using JWT token to get the user from the token and then return the data of this user id .
This is why your widget or any widget depending on wp_current_user or get_current_user_id() wont work
I understand, but I didn't change the default functioning of it, I just increased the functionality of the Custom Learning Paths points to be given also in mycred so I didn't change anything that already exists there, I just added this. That's why I believe my change doesn't make sense to prevent the widget from working you know?
In your at side the widget are working?
Well for mycred points you can use this addon : https://www.youtube.com/watch?v=ND7VVM3CqYs
this addon adds a tab in profile for points history and shows balance .
A normal wp widget based on wordpress user session wont work inside the new dashbaord .
Well for mycred points you can use this addon : https://www.youtube.com/watch?v=ND7VVM3CqYs
this addon adds a tab in profile for points history and shows balance .
A normal wp widget based on wordpress user session wont work inside the new dashbaord .
Hi,
thanks for the reply, but this addon doesn't solve my problem when i want to show the balance in the dashboard along with the other widgets.
You didn't answer me when I asked about the Learning Paths widget if it works on your side or not?
yes learning path widget will work fine .
About the other mycred widgets , im sorry those widgets will not work with the new vibebp dashboard .
Thanks, can close the topic.
thanks for your confirmation