Created
March 22, 2013 04:51
-
-
Save spencejs/5219010 to your computer and use it in GitHub Desktop.
Add Custom Dashboard Widget - Side - In Wordpress
This file contains hidden or 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 Custom Dashboard Widget - Side | |
| add_action( 'wp_dashboard_setup', 'my_dashboard_setup_function' ); | |
| function my_dashboard_setup_function() { | |
| add_meta_box( 'my_dashboard_widget', 'Electrico Useful Information', 'my_dashboard_widget_function', 'dashboard', 'side', 'high' ); | |
| } | |
| function my_dashboard_widget_function() { | |
| // widget content goes here | |
| echo '<p>Some Content</p>'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment