Created
July 16, 2015 20:11
-
-
Save digitalinkwell/3beea36dd5b1f3ffb2da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_dashboard_setup', 'register_my_dashboard_widget' ); | |
function register_my_dashboard_widget() { | |
wp_add_dashboard_widget( | |
'my_dashboard_widget', | |
'My Dashboard Widget', | |
'my_dashboard_widget_display' | |
); | |
} | |
function my_dashboard_widget_display() { | |
echo 'Hello, I am Mr. Widget'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment