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.


Top ↑

Parameters

$items

(string[])Array of extra 'At a Glance' widget items.


Top ↑

Source

File: wp-admin/includes/dashboard.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.