Created
January 11, 2018 10:56
-
-
Save fernandiez/cb7286bd2c2f2c9cbf4bb4ded82301c5 to your computer and use it in GitHub Desktop.
Añadir widgets de contenido en la portada del panel
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
// Añadir widgets de contenido en la portada del panel | |
add_action('wp_dashboard_setup', 'recopilatorio_dashboard_widgets'); | |
function recopilatorio_dashboard_widgets() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('recopilatorio_help_widget', 'Help Section Title', 'recopilatorio_dashboard_help'); | |
} | |
function recopilatorio_dashboard_help() { | |
echo '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum posuere ipsum at porttitor lobortis. </p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment