At A Glance Hook
-
How do you use the At A Glance widget hook? The codex doesn’t seem to have any information on how to effectively use it and the code itself seems ambiguous.
This is is
wp-admin/includes/dashboard.php
:/** * 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. * * @since 3.8.0 * * @param array $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"; }
How can you add an extra item using the filter?
I ask this because it returns a default icon because I can’t seem to change the class on the
li
of the link.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘At A Glance Hook’ is closed to new replies.