tarting out with the dashboard
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Jul 2016 17:46:49 +0000 (13:46 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Jul 2016 17:46:49 +0000 (13:46 -0400)
This is only test stuff for now.

setup/adminHooks.php

index fa63c7d..191d4d6 100644 (file)
  *  Also note that parameters will be in the context of the main admin controller constructor.
  */
 
+function ts_dashboard_1( $post, $callback_args ) {
+    echo 'Hello Test Test!!';
+}
+
+function add_ts_dashboard() {
+    wp_add_dashboard_widget( 'dashboard_widget', 'Example Dashboard Widget', 'ts_dashboard_1' );
+}
+
+add_action( 'wp_dashboard_setup', 'add_ts_dashboard' );