AI Verified
Hiding "Show Toolbar when viewing site" checkbox on profile page for specific user roles
Have a user role that you want to hide "Show Toolbar when viewing site" checkbox on the profile page? This will remove the checkbox on specific user roles so Admins can control who has the admin toolbar show on the front end.
PHP
Voted: 0 by 0 user(s)
Paste code into snippet area and replace 'editor' with the name of your specific user role
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.1
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
19/08/2023
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
Found 0 vulnerabilities
0
Please see some snippets below related to this snippet..
WordPress Admin
AI Verified
Added: 2 years ago
Last Updated: 1 year ago
The WordPress Admin Bar provides handy links to several key functions such as the ability to add new posts and pages, etc. However, if you find no use for it and wish to remove it just activate this s...
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Hide WP Admin Bar For Non-Admins
WordPress Admin
AI Verified
Added: 10 months ago
Last Updated: 10 months ago
<p>Randomize a Post Publish Date in the Classic Editor. Choose between the past 1, 3, 6, 12 months... or customize it to other options. Works in the Classic Editor only for now. <a href="https://snips...
These are some popular snippets from this users codevault..
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Have a user role that you want to hide "Show Toolbar when viewing site" checkbox on the profile page? This will remove the checkbox on specific user roles so Admins can control who has the admin toolb...
WooCommerce
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
In the Product page on the backend, the woocommerce category search filter will stop being a dropdown menu when you exceed 100 categories. It turns into an autofill search field. This snippet stops th...
Category
Snippet Status