WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Glance That

Adds content control to At a Glance on the Dashboard

Glance That allows users to customize the content viewable in At a Glance on the WordPress Dashboard. Users can add/remove items from At a Glance, view statuses of posts, assign custom dashicons for their display, sort the order of displayed items using drag & drop, and quick link to the Add New content screens. Display of items respects user capabilities. Currently, the following items are supported ...

  • Custom post types
  • Revisions (admins only)
  • Media
  • Plugins
  • Users
  • Gravity Forms
  • Formidable Forms

Additionally, Glance That allows you to view the number of items matching the following statuses:

  • Scheduled
  • Pending
  • Draft
  • Private
  • Archived (via Archived Post Status)
  • Trash
  • Unattached (Media)
  • Spam (Comments)
  • Active, Inactive (Plugins & Gravity Forms)
  • Favorites, Recently Active, Updates, Must-Use, Drop-Ins (Plugins)

If you've defined custom post state icons via Post State Tags, then Glance that will inherit these.

Constants

Add the following constants to wp-config.php to control display of Glance That items

Hide add new icon

define( 'GT_SHOW_ADD_NEW', FALSE );

Hide status items

define( 'GT_SHOW_ALL_STATUS', FALSE );

Hide glance items with a zero published count

define( 'GT_SHOW_ZERO_COUNT', FALSE );

Show status items with zero count

define( 'GT_SHOW_ZERO_COUNT_STATUS', TRUE );

Show all dashicons in the icon selector by adding

define( 'GT_SHOW_ALL_DASHICONS', TRUE );

Restrict modification of visible glances by adding

define( 'GT_EDIT_GLANCES', 'capability_required_to_edit' );

Show must-use or drop-in plugin status define( 'GT_SHOW_MUSTUSE', TRUE ); define( 'GT_SHOW_DROPINS', TRUE );

Filters

The gt_default_glances filter can be used to define glances that should be visible to a user upon first visiting their dashboard.

apply_filters( 'gt_default_glances', array $default_glances, int $user_ID );

where the $default_glances parameter is prepopulated as

// Define standard defaults
$gt_default_glances = array(
    'post' => array( 'icon' => 'f109', 'sort' => 1 ),
    'page' => array( 'icon' => 'f105', 'sort' => 2 ),
    'comment' => array( 'icon' => 'f101', 'sort' => 3 ),
    );

The constants defined are becoming more plentiful, so in the interest of possibly removing these in a future version, v3.0 adds corresponding filters for nearly all.

gt_show_zero_count
gt_show_add_new
gt_show_all_status
gt_show_zero_count_status
gt_show_mustuse
gt_show_dropins
gt_show_all_dashicons

Requires: 3.1 or higher
Compatible up to: 4.7.1
Last Updated: 1 month ago
Active Installs: 500+

Ratings

5 out of 5 stars

Support

1 of 1 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 0,1,0