dashboard_glance_items filter-hookWP 3.8.0

Filters the array of extra elements to list in the 'At a Glance' dashboard widget.

Prior to 3.8.0, the widget was named 'Right Now'. Each element is wrapped in list-item tags on output.

Usage

add_filter( 'dashboard_glance_items', 'wp_kama_dashboard_glance_items_filter' );

/**
 * Function for `dashboard_glance_items` filter-hook.
 * 
 * @param string[] $items Array of extra 'At a Glance' widget items.
 *
 * @return string[]
 */
function wp_kama_dashboard_glance_items_filter( $items ){

	// filter...
	return $items;
}
$items(string[])
Array of extra 'At a Glance' widget items.

Changelog

Since 3.8.0 Introduced.

Where the hook is called

wp_dashboard_right_now()
dashboard_glance_items
wp-admin/includes/dashboard.php 361
$elements = apply_filters( 'dashboard_glance_items', array() );

Where the hook is used in WordPress

Usage not found.