#wordpress #woocommerce #user-roles
#wordpress #woocommerce #пользователь-роли
Вопрос:
https://wordpress.org/plugins/user-role-editor / Этот плагин, который я установил, как вернуться назад, я отключаю плагин, но все равно не могу получить доступ к администратору woo-commerce
он показывает мне только меню заказа и купона.
как это исправить, пожалуйста, помогите
Ответ №1:
я думаю, что вы не предоставили права менеджера магазина пользователю admin, поэтому это происходит
/ * решение */ вы снова активируете вышеуказанный плагин и предоставляете роль выбранному пользователю-администратору. вы также можете проверить скриншот, приведенный в плагине user-role-editor
Ответ №2:
Итак, я исправил проблему из документов плагина office https://www.role-editor.com/how-to-restore-deleted-wordpress-user-roles /
3rd variant – User Role Editor creates roles backup record before save the very 1st update to them. You need to use SQL tool like phpMyAdmin. Find that record at ‘wp_options’ meta database table:
SELECT * FROM wp_options WHERE option_name='wp_backup_user_roles';
As the result you will see something like this (I use MySQL Workbench):
User Roles Auto Backup
User Roles Auto Backup
Take data from the option_value field and place them into the record where WordPress stores user roles originally. You may find it with this SQL query:
SELECT * FROM wp_options WHERE option_name='wp_user_roles';
Read this post for more details about changing WordPress user roles directly in the database using SQL commands.