I noticed recently my custom counts for custom post types are not showing on the dashboard. Im using this function:
It worked well before, Im not sure when it stopped working but I think after updating to 3.8?
Or is there a new function I should use with the new dashboard that is in 3.8?
Thanks in advance.
The new action is
dashboard_glance_items
. It is a filter providing an array to which you can add items.Example from my plugin T5 Taxonomy Location
This change is not backwards compatible and rather ⦠dirty. See ticket #26571 for problems and possible solutions.
The new thing is essentially different widget and that hook was removed from core. The closest replacement is new
dashboard_glance_items
filter.See trac tickets:
Please check out this function. I believe it’s temporary solution, but it works for me. More info can be found here: Add Custom Post Types and Taxonomies to At a Glance dashboard widget