Eigenes Dashboard Widget in Wordpress


/ Published in: PHP
Save to your folder(s)

Code in functions.php einfügen


Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.