projects
/
WP-Plugins
/
glm-member-db-leads.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2295317
)
tarting out with the dashboard
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 19 Jul 2016 17:46:49 +0000
(13:46 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/setup/adminHooks.php
b/setup/adminHooks.php
index
fa63c7d
..
191d4d6
100644
(file)
--- 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' );