Last active
August 8, 2022 20:35
-
-
Save MariaJackson1/59102e77da4af7095b52789f00386543 to your computer and use it in GitHub Desktop.
Custom Dashboard Widget
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
| https://www.wpbeginner.com/wp-themes/how-to-add-custom-dashboard-widgets-in-wordpress/ | |
| Add to functions.php | |
| Don't forget to change email | |
| add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets'); | |
| function my_custom_dashboard_widgets() { | |
| global $wp_meta_boxes; | |
| wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help'); | |
| } | |
| function custom_dashboard_help() { | |
| echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:yourusername@gmail.com">here</a>. For WordPress Tutorials visit: <a href="https://www.wpbeginner.com" target="_blank">WPBeginner</a></p>'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment