apply_filters( 'dashboard_glance_items', string[] $items )
- Since
- 3.8.0
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.
Compatibility
- WordPress
- since 3.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$itemsstring[]- Array of extra 'At a Glance' widget items.
Where this hook fires · 1
wp-admin/includes/dashboard.php:361wp_dashboard_right_now()
Source code
* is wrapped in list-item tags on output. * * @since 3.8.0 * * @param string[] $items Array of extra 'At a Glance' widget items. */ $elements = apply_filters( 'dashboard_glance_items', array() ); if ( $elements ) { echo '<li>' . implode( "</li>\n<li>", $elements ) . "</li>\n"; } ?>Changelog
Introduced in 3.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.