Reset WPML Capabilities
While working on a project using WPML and user role editor, I ran into an issue where I could no longer access certain admin areas of WPML – with my administrator account. I needed a way to recreate the default WPML capabilities. Run this script as a plugin, navigate to any admin page, and then deactivate and uninstall.