[wp-trac] [WordPress Trac] #45035: allow register_post_type() arg to control whether a CPT's counts are added to the "At a Glance" Dashboard widget
WordPress Trac
noreply at wordpress.org
Wed Oct 10 16:17:14 UTC 2018
#45035: allow register_post_type() arg to control whether a CPT's counts are added
to the "At a Glance" Dashboard widget
-------------------------------+------------------------------
Reporter: pbiron | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
-------------------------------+------------------------------
Changes (by johnbillion):
* keywords: dev-feedback => needs-patch
Comment:
My [https://github.com/johnbillion/extended-cpts Extended CPTs library]
provides a `glance` argument that adds the post type to the At a Glance
dashboard widget. I think a custom callback for the count is unnecessary -
if you have a custom requirement such as that then the existing
`dashboard_glance_items ` filter can be used.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45035#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list