@lion73 Good question!
At the moment, the editor role will have the Google Reviews present in their Dashboard menu. There is no wp_options value or a function to hide this, however, you could use the following CSS to hide it from the Dashboard menu:
#toplevel_page_google_business_reviews_rating {
display: none;
}
Look up admin or Dashboard custom CSS to see how to introduce this style rule into your Dashboard.
I will look into enabling/disabling this menu item and the reviews in a future version as it is a good idea to have some control over what appears to your website’s editors.
Thread Starter
Lion73
(@lion73)
Thanks! Very fast response and works perfectly!
Is there a way to remove the plugin from wp dashboard for no admin users (no hide from screen setting)?
@lion73 There could be a way to remove the menu item and its subsequent plugin page programmatically. I’ll report back on this later – but it would be better if I just introduce this as an option in a subsequent version.
Thread Starter
Lion73
(@lion73)
Yes, I think removing it from the dashboard is a useful and welcome option in a future release.
In the meantime, do you have an indication on the fly to give me?
@lion73 I’ll just include this either as an option (either hidden or visible in the Advanced tab) in the next release.
For now, please look up this function: remove_menu_page() in the WordPress codex. You can use this to dequeue the page for non-administrators.
@lion73 Added this functionality to version 4.21. You can alter the option in the wp_options table under: google_business_reviews_rating_editor
= 0
.
Thread Starter
Lion73
(@lion73)
Hi…thanks, great implementation.
Is it necessary to alter the table manually?
@lion73 Yes, for now this is the only way.