AI Verified
Add icons to the custom post types in the At a Glance Dashboard widget
This snippet adds custom icons to your custom post type counters in the At a Glance widgets on your WordPress Dashboard. I have a snippet in my Codevault on how to add CPTs to this widget too.
PHP
Voted: 0 by 0 user(s)
• "Only run in administration area" in the snippet settings. • You will need to replace "custom-post-type-x" with the slug of your custom post type. • You can change the icon for each custom post type by changing the value after "content". This usually looks something like "\f123". You can find a full list of the available WordPress Dashicons here: https://developer.wordpress.org/resource/dashicons.
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:
15/11/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
Unverified
Added: 1 year ago
Last Updated: 1 year ago
Remove WPengine Dashboard in WordPress AdminMenu
WordPress Admin
AI Verified
Added: 1 year ago
Last Updated: 1 year ago
Some plugins just need to stay to that version. This snippet ensures that no automatic or manual update can be performed my anyone.
WordPress Admin
AI Verified
Added: 1 month ago
Last Updated: 1 month ago
Adds a dropdown to the posts screen to filter by author
These are some popular snippets from this users codevault..
WordPress Admin
AI Verified
Added: 8 months ago
Last Updated: 7 months ago
This snippet adds your custom post types to the "At a Glance" widget on your WordPress Dashboard. By default, only Posts and Pages display, but this snippet will allow you to pull in counters for all...
WordPress Admin
AI Verified
Added: 8 months ago
Last Updated: 8 months ago
This snippet adds custom icons to your custom post type counters in the At a Glance widgets on your WordPress Dashboard. I have a snippet in my Codevault on how to add CPTs to this widget too.
Divi Builder
AI Verified
Added: 8 months ago
Last Updated: 8 months ago
This snippet enables Dynamic Content in the number field of Divi's Number Counter module. This would then allow you to control the content through a plugin such as ACF rather than the Divi Builder.
Category
Snippet Status