Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Deactivate all plugins except WooCommerce and try. If that will help activate plugins back one by one. May be something else takes an effect.
VladimirKeymasterThe logic is correct. If it’s exactly the code you paste – it uses wrong quotes, it should use simple single quote character
'
for all string constants.VladimirKeymasterTry to start from more simple code. Comment role checking. May be something wrong is there. Let’s it work for all users for begin.
VladimirKeymasterCreate ‘mu-plugins’ folder. File name does not matter. WordPress executes any .php file it find in this folder.
https://codex.wordpress.org/Must_Use_PluginsVladimirKeymasterTry another variant. Create .php file, open it in editor, start from <?php tag and insert there a code above, save it. Then put that file to the ‘wp-content/mu-plugins/’ folder (“must use” plugins). Will it help?
VladimirKeymasterThis post will help:
https://www.role-editor.com/woocommerce-admin-bar-access/VladimirKeymasterThanks. It seems to be correct.
Please check, if your child theme is really active.
Do you use WooCommerce plugin?VladimirKeymasterShow the code after modification.
VladimirKeymasterHi,
This code shows admin top menu bar for the role:
add_action('wp_head', 'show_top_admin_menu_bar', 100); function show_top_admin_menu_bar() { if (current_user_can('some_role')) { show_admin_bar(true); } }
Pay attention for the 100 value of a priority parameter. With this value code should be executed after that other plugin did its work.
You may add it to the functions.php file of your active theme.
VladimirKeymasterInteresting issue.
Is it possible to look on the issue on-line?
If “Yes”, send super-admin login credentials to the [email protected]VladimirKeymasterI provide support via forum or email only.
Is it possible to get your theme or plugin copy with step by step instruction how to repeat an issue? If “yes” send the installation package to support [at-sign] role-editor.com
I will use it at localhost for the testing purpose only.VladimirKeymasterJust tested URE Pro with all add-ons activated together with my own plugin, which uses front-end calls to WordPress AJAX.
It’s built according to this doc. page:
https://codex.wordpress.org/AJAX_in_Plugins
It works fine as for logged-in, as for non-logged-in users.So I need more information to repeat an issue.
If your functionality is included into the theme or plugin, is it possible to get it for the testing?VladimirKeymasterLet me know what checkboxes are turned on at the your site Settings->User Role Editor -> Additional Modules tab?
VladimirKeymasterHi,
Development version 4.19.b20 contains this functionality now. It is available from the download page after login.
Please test. The feedback is very appreciated.VladimirKeymasterIt is possible to set posts/pages edit restrictions for selected users:
https://www.role-editor.com/allow-user-edit-selected-posts/
Plugin still does not support such restrictions for the roles.You may insert the provided code into your active theme functions.php file.
-
AuthorPosts