From df09a3b59f0d58b3d6478c850523cf463ea15bc5 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 19 Jul 2016 13:46:49 -0400 Subject: [PATCH] tarting out with the dashboard This is only test stuff for now. --- setup/adminHooks.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index fa63c7d..191d4d6 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -26,4 +26,13 @@ * 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' ); -- 2.17.1