Navigation überspringen

[Gelöst] Removing capabilities after uninstall

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 support ticket is created vor 3 years, 2 months. There's a good chance that you are reading advice that it now obsolete.

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 -

Zeitzone des Unterstützers: America/Sao_Paulo (GMT-03:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von davidM-17 vor 3 years, 2 months.

Assistiert von: Mateus Getulio.

Author
Artikel
#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?

versteckter Link

#2587717

Mateus Getulio
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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!