Posted By

PM-Webdesign on 10/08/10


Tagged

wordpress dashboard widget


Versions (?)

Eigenes Dashboard Widget in Wordpress


 / Published in: PHP
 

URL: http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Code in functions.php einfügen

  1. add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
  2.  
  3. function my_custom_dashboard_widgets() {
  4. global $wp_meta_boxes;
  5.  
  6. wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help');
  7. }
  8.  
  9. function custom_dashboard_help() {
  10. echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:[email protected]">here</a>. For WordPress Tutorials visit: <a href="http://www.wpbeginner.com" target="_blank">WPBeginner</a></p>';
  11. }

Report this snippet  

You need to login to post a comment.