dashboard_glance_items WordPress Filter Hook
The dashboard_glance_items hook allows you to add or remove items from the "At a Glance" section of the WordPress admin dashboard. This section contains information about your site, such as the number of published posts and pages, the number of comments, and the number of users.
apply_filters( 'dashboard_glance_items', string[] $items ) #
Filters the array of extra elements to list in the ‘At a Glance’ dashboard widget.
Description
Prior to 3.8.0, the widget was named ‘Right Now’. Each element is wrapped in list-item tags on output.
Parameters
- $items
(string[])Array of extra 'At a Glance' widget items.
Source
Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |