Hi @mikelimit9999
UM heavily relies on its javascript and CSS assets so removing them is not recommended. You can try this doc to disable UM assets to a specific page.
https://docs.ultimatemember.com/article/1490-how-to-remove-css-and-js-on-non-um-pages
Regards.
But it looks like that code removes ALL assets…. I don’t want to remove all the plugin’s assets, since I still need to keep the ability to retrieve user data.
Look, I just need to display some user data, that’s all. Can this be achieved with the script you provided?
Hi @mikelimit9999
Can you please specify what “some user data” you’re referring to? The code in the link removes all assets from specific pages.
Regards,
I already said, I need to be to display things like name and location, from a shortcode (inside a custom widget would be an example). I don’t know all the features to be loaded in every page, but I also don’t want to disable all features, that’s why I asked about assets cleanup plugin.
Hi @mikelimit9999
You can use the UM User Meta shortcode plugin to display the name and location without the UM assets. Please see the plugin in https://github.com/ultimatemember/Extended#installation
Regards,
Hey there!
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,
Your solution is not working, the entire plugin is still loading in every page.
I need to disable some of the plugin assets, such as js and css.
Wait, this one https://docs.ultimatemember.com/article/1490-how-to-remove-css-and-js-on-non-um-pages seems to be working, but I still have some questions.
Do this unload all assets? Only UM php is going to be loaded?