From: Steve Sutton Date: Tue, 19 Jul 2016 17:46:49 +0000 (-0400) Subject: tarting out with the dashboard X-Git-Tag: v1.1.0^2~1^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=df09a3b59f0d58b3d6478c850523cf463ea15bc5;p=WP-Plugins%2Fglm-member-db-leads.git tarting out with the dashboard This is only test stuff for now. --- 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' );