should help you out How I can hide WordPress admin panel options for all except one user. I want to hide some setting options and theme options for all users except me (username: jacob). , This code will hide admin bar for all users:
may help you . Navigate to rails admin github page and download the views folder. Copy this file /rails_admin/main/export.html.haml in the same directory of your project.If you don't have the directory create one. Then comment these lines :
it helps some times In wordpress e-shop (woocommerce) is it possible to hide/remove option stock inventory in products tab if the user is not admin? My client who is admin doesnt want that shop manager would be able to costumize stock inventory. , You can remove Invertory tab
add_filter('woocommerce_product_data_tabs', 'remove_inventory_tab', 10, 1);
if is ..
How to hide form select option when an option is nil rails 4