AI Verified
Display Database Name on Admin Bar
This snippet will display your WordPress database name on your admin bar for administrator users.
PHP
Voted: 0 by 0 user(s)
1. Activate code snippet. This approach limits the visibility of the database name to only administrators. Always consider the broader context of your site's security and privacy policies. Displaying technical information in the admin bar can be very useful for site management but should be used judiciously, especially on sites with multiple administrators or in environments where admin accounts could be compromised.
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.4
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:
21/02/2024
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: 9 months ago
Last Updated: 9 months ago
When using Code Snippets 3.6.0 or later, use this snippet to prevent the automatic scroll-to-top after clicking 'save' when editing a snippet.
WordPress Admin
Pro Verified
Added: 1 year ago
Last Updated: 1 year ago
Maybe you want to hide the Plugin item or more from the Wordpress Dashboard Sidebar.
WordPress Admin
AI Verified
Added: 6 months ago
Last Updated: 6 months ago
ADMIN ONLY • This code snippet enhances the Gutenberg Block Editor in WordPress by adding a keyboard shortcut. By pressing Alt+Shift+Minus, users can toggle the Block Outline List View, which provides...
These are some popular snippets from this users codevault..
General
AI Verified
Added: 6 months ago
Last Updated: 5 months ago
Display the estimated read time of a post with a shortcode. This code snippet produces a shortcode to display the estimated reading time for a post. It strips HTML tags, counts the words, and divi...
WordPress Admin
AI Verified
Added: 4 months ago
Last Updated: 3 months ago
This WordPress code snippet enhances the admin dashboard by adding a custom item to the WordPress admin bar labeled "Check External IP". This feature allows administrators to fetch and display the ext...
General
AI Verified
Added: 4 months ago
Last Updated: 4 months ago
Display the users current IP address with shortcode [my-ip]
Category
Snippet Status