Skip Navigation

[Resolved] Removing capabilities after uninstall

This thread is resolved. Here is a description of the problem and solution.

Problem:
I uninstalled Toolset from a site and see on the user profile page that it left behind a number of role capabilities (see image). Is there a sql script or code snippet to remove that? Or what do you recommend?
Solution:
https://toolset.com/forums/topic/removing-capabilities-after-uninstall/#post-2587717

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 2 replies, has 2 voices.

Last updated by davidM-17 1 year, 7 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2587637
toolset-capabilities.jpg

Tell us what you are trying to do?

Hi Toolset Team,

I uninstalled Toolset from a site and see on the user profile page that it left behind a number of role capabilities (see image). Is there a sql script or code snippet to remove that? Or what do you recommend?

Thank you,

David McCan

What is the link to your site?

hidden link

#2587717

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello David,

Welcome to the Toolset support forum!

To achieve this, you can try to reinstall Access, go to Toolset -> Settings -> Access and all its settings and options will be removed if you hit on the "Remove Access settings from my database" button.

If this does not work, since it is a wordpress build-in feature, you can disable it using the WP filter hook "additional_capabilities_display" (the filter is located in the file: wp-admin/user-edit.php.). For example, you can add the filter code in your theme/functions.php, like this:

	
add_filter('additional_capabilities_display', 'remove_additional_capabilities_func');
 
function remove_additional_capabilities_func()
{
    return false;
} 

Please note: the possible solution provided is to be used just as an informational one. Please remember that custom coding is out of the scope of our support, so we can't create, debug or modify code for you and it's your responsibility to maintain it. We hope the one we used as an example could point you in the right direction. Please check our support policy: https://toolset.com/toolset-support-policy/

Thanks for your understanding. If you need anything else don't hesitate to contact us.

Regards,
Mateus.

#2588919

My issue is resolved now. Thank you!