Last active
March 21, 2017 20:01
-
-
Save marcosnakamine/9e371c1059d3097781f7425de1aedbae to your computer and use it in GitHub Desktop.
WordPress - Add widget content in Welcome dashboard
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
<?php | |
add_action('wp_dashboard_setup', 'add_dashboard_widgets' ); | |
function add_dashboard_widgets() { | |
wp_add_dashboard_widget('dashboard_widget', 'Title', function($post, $callback_args){ | |
echo 'Hello world'; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment