Last active
December 27, 2015 16:09
-
-
Save nutsandbolts/7353434 to your computer and use it in GitHub Desktop.
Add a custom widget to the WP dashboard with any content you want to include.
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 | |
add_action('wp_dashboard_setup', 'nabm_dashboard_widget'); | |
function nabm_dashboard_widget() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('custom_help_widget', 'ADD WIDGET TITLE HERE', 'custom_dashboard_help'); | |
} | |
function custom_dashboard_help() { | |
echo '<p>PLACE YOUR WIDGET CONTENT HERE, INCLUDING HTML.</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment