Creating Your Own WordPress Dashboard Widgets

<?php function ah_custom_dashboard_widgets() { global $wp_meta_boxes; wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'ah_custom_dashboard_help'); } function ah_custom_dashboard_help() { echo '<p>Willkommen zum Custom Theme! Du brauchst Hilfe? Dann kontaktiere den Entwickler <a href="mailto:yourusername@gmail.com">hier</a>. Für WordPress Tutorials besuche: <a href="http://www.drweb.de" target="_blank">Dr. Web Magazin</a></p>'; } add_action('wp_dashboard_setup', 'ah_custom_dashboard_widgets');
Maybe you’ve asked yourself how some plugin developers are able to integrate their self-made widgets in the WordPress dashboard. This is quite simple, here’s a possible approach.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.