Title: Default glances for all users?
Last modified: August 31, 2016

---

# Default glances for all users?

 *  Resolved [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * (@bugnumber9)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/default-glances-for-all-users/)
 * I tried to use the code you provided for default glances, but can’t get it to
   work.
 * I have this in functions.php:
 *     ```
       apply_filters( 'gt_default_glances', array $default_glances );
       $gt_default_glances = array(
           'post' => array( 'icon' => 'f109', 'sort' => 1 ),
           'page' => array( 'icon' => 'f105', 'sort' => 2 ),
           'comment' => array( 'icon' => 'f101', 'sort' => 3 ),
           'job_listing' => array( 'icon' => 'f487', 'sort' => 4 ),
           );
       ```
   
 * It throws an error, so I’m obviously missing something here.
 * [https://wordpress.org/plugins/glance-that/](https://wordpress.org/plugins/glance-that/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [uamv](https://wordpress.org/support/users/uamv/)
 * (@uamv)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/default-glances-for-all-users/#post-7370021)
 * You will want to define the array first, then pass it through the filter. Try
   this:
 *     ```
       $gt_default_glances = array(
           'post' => array( 'icon' => 'f109', 'sort' => 1 ),
           'page' => array( 'icon' => 'f105', 'sort' => 2 ),
           'comment' => array( 'icon' => 'f101', 'sort' => 3 ),
           'job_listing' => array( 'icon' => 'f487', 'sort' => 4 ),
           );
       apply_filters( 'gt_default_glances', $gt_default_glances );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Default glances for all users?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/glance-that_ffffff.svg)
 * [Glance That](https://wordpress.org/plugins/glance-that/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/glance-that/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/glance-that/)
 * [Active Topics](https://wordpress.org/support/plugin/glance-that/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/glance-that/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/glance-that/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [uamv](https://wordpress.org/support/users/uamv/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/default-glances-for-all-users/#post-7370021)
 * Status: resolved