Created
February 8, 2021 13:26
-
-
Save wpmu-authors/6de7a302cf7a894e75d0c618d9754e1e to your computer and use it in GitHub Desktop.
skeleton.php
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
add_action( 'wp_dashboard_setup', 'register_my_dashboard_widget' ); | |
function register_my_dashboard_widget() { | |
wp_add_dashboard_widget( | |
'my_dashboard_widget', | |
'My Dashboard Widget', | |
'my_dashboard_widget_display' | |
); | |
} | |
function my_dashboard_widget_display() { | |
echo 'Hello, I am Mr. Widget'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment