wp-media / adminimize

Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend.
https://wordpress.org/plugins/adminimize/
GNU General Public License v2.0
100 stars 31 forks source link

Remove administrator parameters in the database #119

Open poco06 opened 5 years ago

poco06 commented 5 years ago

Hello,

I have created some restrictions in the administrator role and would like to come back to initial situation (I'm no more able to access setting page) I know I can deactivate the plugin thanks to ftp but I have some adminimize parameters for other specific roles I do not want to lose. So, I have seen that all adminimize parameters are stored in the database (mw_adminimize). I just would like to know how the retrieve the part related to administrator and remove it.

Thanks for your help Pat

bueltge commented 5 years ago

Hi Pat. You have also the chance to got to the settings page (wp-admin/options-general.php?page=adminimize-options), this page is excluded from the role, but not from the menu. Before longer time was this an feature from a lot of users to add this to remove it from the menu. So store you the settings page if you will remove the settings page from the menu on your role. Also a chance is to create a additional role, that is different from Admin-Default role or remove the settings page for Adminimize from a role.

the link to the settings page will you find also on the plugin list, link of Settings. image

I hope this helps?

poco06 commented 5 years ago

Hi Frank,

Thanks for your quick answer.

Unfortunately, I was no more able to access to any admin pages that have been checked for admin user !

In fact, I was thinking the primary admin user was over this kind of restriction and I think this should be the way the plugin works in the futur (almost with a kind of parameter placing main admin out of the scope of the adminimize plugin !).

I have been able to desactivate the plugin thanks to ftp access, but I have been obliged to delete all parameters of the plugin in the database in order to retrieve all admin rights. This being said, I have rewrited all rules that were already created for other roles than admin !!!

Regards Pat