Last active
August 8, 2018 16:52
-
-
Save nfsarmento/b1f5e0c08157ca6791ed0d2a2e840644 to your computer and use it in GitHub Desktop.
Custom WordPress dashboard widget
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
/** | |
* Custom dashboard widget | |
*/ | |
add_action('wp_dashboard_setup', 'ns_custom_dashboard_widgets'); | |
function ns_custom_dashboard_widgets() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('custom_help_widget', 'Website Support', 'custom_dashboard_help'); | |
} | |
function custom_dashboard_help() { | |
echo '<p>Welcome to our website! Need help? Contact the helpdesk <a href="">here</a>. For WordPress FAQ visit: <a href="" target="_blank">FAQ</a></p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment