Hide the main dashboard widget for leads.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Oct 2016 14:15:49 +0000 (10:15 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Oct 2016 14:15:49 +0000 (10:15 -0400)
Not complete yet.

setup/adminHooks.php

index cdff438..400dad1 100644 (file)
@@ -34,7 +34,7 @@ if ( current_user_can( 'glm_members_members' ) ) {
         wp_add_dashboard_widget( 'dashboard_widget', 'Example Dashboard Widget', 'ts_dashboard_1' );
     }
 
-    add_action( 'wp_dashboard_setup', 'add_ts_dashboard' );
+    //add_action( 'wp_dashboard_setup', 'add_ts_dashboard' );
 }
 
 add_filter(