Created
June 20, 2013 02:01
-
-
Save andyknapp/5819771 to your computer and use it in GitHub Desktop.
Add a widget to the WP admin dashboard
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
function ak_dashboard_widget() { ?> | |
<p>stuff</p> | |
<?php | |
} | |
function ak_add_dashboard_widget() { | |
wp_add_dashboard_widget('wp_dashboard_widget', 'Welcome to This Site', 'ak_dashboard_widget'); | |
} | |
add_action('wp_dashboard_setup', 'ak_add_dashboard_widget'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment